10.28代码

1、

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
error page;
</body>
</html>

2、

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
body{
background:url("./test.jpg");
background-repeat:repeat;
background-size:1200px 600px;
background-position-center:100%;
}
</style>
</head>

<body>
<form action="PanCourse.jsp" method="get">
<table align="center" border="1">
<tr>
<td colspan="2">课程名称<input type="text" name="name"/>
</td>
<tr>
<td colspan="2">任课教师<input type="text" name="teacher"/>
</td>
</tr>
<tr>
<td colspan="2">上课地点<input type="text" name="place"/>
</td>
</tr>

<tr>
<td align="center" colspan="2">
<input type="submit" value="保存"/></td>
</tr>
</table>
</form>
<br><br><br><br><br>
<script language = "javascript">
function jump2(){
window.location.href = "hello2.jsp";
}
function jump3(){
window.location.href = "hello3.jsp";
}
</script>
<br>
<form>
请输入需要的操作:
<input type ="button" value = "跳转1" onclick="jump2()" >
<input type ="button" value = "跳转2" onclick="jump3()" >
</form>
</body>
</html>

3、

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
body{
background:url("./test.jpg");
background-repeat:repeat;
background-size:1200px 600px;
background-position-center:100%;
}
</style>
</head>
<body>
<script language = "javascript">
function jump1(){
window.location.href = "hello1.jsp";
}
</script>
<br>
<form>
This is hello2.jsp.
<input type ="button" value = "返回" onclick="jump1()" >
</form>
</body>
</html>

4、

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
body{
background:url("./test.jpg");
background-repeat:repeat;
background-size:1200px 600px;
background-position-center:100%;
}
</style>
</head>

<body>
<script language = "javascript">
function jump1(){
window.location.href = "hello1.jsp";
}
</script>
<br>
<form>
This is hello3.jsp.
<input type ="button" value = "返回" onclick="jump1()" >
</form></body>
</html>

5、

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Login Page</title>
</head>
<body>
<hr><br>Welcome to this <font color="green">Login Page</font>!<br>
<form action="error.jsp" method="get">
<br>
<h1>Please input your message:</h1><br>
用户名: <input type="text" name="name"><br>
密码: <input type="password" name="password"><br>
<br><br><br>
<input type="submit" value="登陆">
<input type="reset"><br>

</form>

</body>
</html>

原文地址:https://www.cnblogs.com/lx06/p/14164952.html