Skip to content

Commit cba774b

Browse files
author
xiachaochao
committed
JavaWeb动作
1 parent a38c147 commit cba774b

13 files changed

Lines changed: 182 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Insert title here</title>
6+
</head>
7+
<body>
8+
<form action="../JSP/bookReceive.jsp" method="post">
9+
书名 <select name="bookName">
10+
<option value="1">JavaBase</option>
11+
<option value="2">WebBase</option>
12+
</select><br> 数量<select name="bookNum">
13+
<option value="5">5</option>
14+
<option value="6">6</option>
15+
</select>
16+
</form>
17+
</body>
18+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Insert title here</title>
6+
</head>
7+
<body>
8+
<h1>登录成功</h1>
9+
</body>
10+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Insert title here</title>
6+
</head>
7+
<body>
8+
<h1>登录失败</h1>
9+
</body>
10+
</html>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>newbook1</title>
6+
</head>
7+
<body>
8+
<h1>1</h1>
9+
10+
</body>
11+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>newbook2</title>
6+
</head>
7+
<body>
8+
<h1>2</h1>
9+
</body>
10+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>newbook3</title>
6+
</head>
7+
<body>
8+
<h1>3</h1>
9+
</body>
10+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>newbook4</title>
6+
</head>
7+
<body>
8+
<h1>4</h1>
9+
</body>
10+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<%@ page language="java" contentType="text/html; charset=UTF-8"
2+
pageEncoding="UTF-8"%>
3+
<%@page import="com.javaWeb.bean.*"%>
4+
<jsp:useBean id="book" class="com.javaWeb.bean.BookBean" scope="page">
5+
<jsp:setProperty property="*" name="book" />
6+
7+
</jsp:useBean>
8+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
9+
<html>
10+
<head>
11+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
12+
<title>图书订购</title>
13+
</head>
14+
<body>
15+
16+
</body>
17+
</html>

JavaWeb/WebContent/JSP/login.jsp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<%@ page language="java" contentType="text/html; charset=UTF-8"
2+
pageEncoding="UTF-8"%>
3+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4+
<html>
5+
<head>
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7+
<title>Insert title here</title>
8+
</head>
9+
<body>
10+
<form name="form1" method="post" action="loginReceive.jsp">
11+
姓名 <input name="userName" type="text" size="12" /> <br> 密码 <input
12+
name="passWord" type="password" size=12 /> <br> <input
13+
type="submit" name="submit" value="提交"><input type="reset"
14+
name="submit2" value="重置">
15+
</form>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)