?? b03ca0ccee18001e1aa3f6da0f9d7068
字號:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
import="com.cric.onlineshopclothes.dao.CustomerDAO"
import="com.cric.onlineshopclothes.javabean.Customer"
%>
<%@ page import="java.util.List" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
CustomerDAO customer=new CustomerDAO();
List list=customer.getCustomerList();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<table width="90%" border="1">
<tr>
<td>客戶編號</td>
<td>客戶姓名</td>
<td>客戶密碼</td>
<td>客戶性別</td>
<td>客戶郵箱</td>
<td>客戶地址</td>
<td>客戶聯(lián)系電話</td>
</tr>
<%
if(list!=null){
for(int i=0;i<list.size();i++){
Customer customer1=new Customer();
Customer customer=(Customer)list.get(i);
%>
<tr>
<td><%=pro.getPid()%></td>
<td><%=pro.getProductName()%></td>
<td><%=pro.getProductDetail() %></td>
<td><%=pro.getProductPrice() %></td>
<td><%=pro.getProductAmount() %></td>
<td><img height="20px" width="20px" src="images/<%=pro.getProductPic()%>"></td>
<td><%=pro.getProductState() %></td>
<td><a href="productEdit.jsp?pid=<%=pro.getPid() %>">修改</a> <a href="ProductServlet?operate=del">刪除</td>
</tr>
<%}
}else{%>
<tr>
<td colspan="7">還沒有商品信息!</td>
</tr>
<%} %>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -