1
1
<%@ page language =" java" contentType =" text/html; charset=UTF-8"
2
- pageEncoding =" UTF-8" %>
3
- <%@ taglib uri =" http://java.sun.com/jsp/jstl/core" prefix =" c" %>
4
- <%@ taglib uri =" http://java.sun.com/jsp/jstl/fmt" prefix =" fmt" %>
2
+ pageEncoding =" UTF-8" %>
3
+ <%@ taglib uri =" http://java.sun.com/jsp/jstl/core" prefix =" c" %>
4
+ <%@ taglib uri =" http://java.sun.com/jsp/jstl/fmt" prefix =" fmt" %>
5
5
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
6
6
<html >
7
7
<head >
8
8
<meta http-equiv =" Content-Type" content =" text/html; charset=UTF-8" >
9
9
<title >查询商品列表</title >
10
10
</head >
11
- <body >
12
- <form action =" ${ pageContext. request. contextPath } /item/queryItem.action" method =" post" >
13
- 查询条件:
14
- <table width =" 100%" border =1 >
15
- <tr >
16
- <td ><input type =" submit" value =" 查询" /></td >
17
- </tr >
18
- </table >
19
- 商品列表:
20
- <table width =" 100%" border =1 >
21
- <tr >
22
- <td >商品名称</td >
23
- <td >商品价格</td >
24
- <td >生产日期</td >
25
- <td >商品描述</td >
26
- <td >操作</td >
27
- </tr >
28
- <c:forEach items =" ${ itemsList } " var =" item" >
29
- <tr >
30
- <td >${ item. name } </td >
31
- <td >${ item. price } </td >
32
- <td ><fmt:formatDate value =" ${ item. createtime } " pattern =" yyyy-MM-dd HH:mm:ss" /></td >
33
- <td >${ item. detail } </td >
34
-
35
- <td ><a href =" ${ pageContext. request. contextPath } /item/editItem.action?id=${ item. id } " >修改</a ></td >
11
+ <body >
12
+ <form
13
+ action =" ${ pageContext. request. contextPath } /item/queryItem.action"
14
+ method =" post" >
15
+ 查询条件:
16
+ <table width =" 100%" border =1 >
17
+ <tr >
18
+ <td ><input type =" submit" value =" 查询" /></td >
19
+ </tr >
20
+ </table >
21
+ 商品列表:
22
+ <table width =" 100%" border =1 >
23
+ <tr >
24
+ <td >商品名称</td >
25
+ <td >商品价格</td >
26
+ <td >生产日期</td >
27
+ <td >商品描述</td >
28
+ <td >操作</td >
29
+ </tr >
30
+ <c:forEach items =" ${ itemsList } " var =" item" >
31
+ <tr >
32
+ <td >${ item. name } </td >
33
+ <td >${ item. price } </td >
34
+ <td ><fmt:formatDate value =" ${ item. createtime } "
35
+ pattern =" yyyy-MM-dd HH:mm:ss" /></td >
36
+ <td >${ item. detail } </td >
36
37
37
- </ tr >
38
- </ c:forEach >
38
+ < td >< a
39
+ href = " ${ pageContext . request . contextPath } /item/editItem.action?id= ${ item . id } " >修改</ a ></ td >
39
40
40
- </table >
41
- </form >
41
+ </tr >
42
+ </c:forEach >
43
+
44
+ </table >
45
+ </form >
42
46
</body >
43
47
44
48
</html >
0 commit comments