-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewgoods.jsp
More file actions
30 lines (27 loc) · 813 Bytes
/
viewgoods.jsp
File metadata and controls
30 lines (27 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="model.Goods"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>goods</title>
</head>
<body>
<%
List<Goods> goodsList = (ArrayList<Goods>) request.getAttribute("glist");
for (Goods ref : goodsList) {
out.print("Id: " + ref.getGoodsId());
out.print("<br/>");
out.print("Name: " + ref.getGoodsName());
out.print("<br/>");
out.print("Price: " + ref.getGoodsPrice());
out.print("<br/>");
out.print("GoodsQuantity: " + ref.getGoodsQuantity());
out.print("<br/>");
}
%>
</body>
</html>