?? modifyproduct.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="org.me.product.*,java.util.*,java.io.*" errorPage="error.jsp" %><%@ include file="trans.jsp"%><%--The taglib directive below imports the JSTL library. If you uncomment it,you must also add the JSTL library to the project. The Add Library... actionon Libraries node in Projects view can be used to add the JSTL 1.1 library.--%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><jsp:useBean id="product" class="org.me.product.ProductBean" scope="page"/><body><center><h1>選擇要更改的商品</h1><table width=80% border="1" bgcolor="#0099CC"><tr bgcolor="#009966" bordercolor="#990066"><td>id</td><td>類別</td><td>名稱</td><td>出廠商</td><td>價格</td><td>描述</td><td>更改</td></tr><%Collection products=product.getAllProduct();Iterator it=products.iterator();while(it.hasNext()){ Product temp=(Product)it.next(); out.println("<tr bordercolor=#990066>"); out.println("<td>"+temp.getProductId()+"</td>"); out.println("<td>"+temp.getCategoryId()+"</td>"); try { out.println("<td>"+trans(temp.getName())+"</td>"); out.println("<td>"+trans(temp.getProducer())+"</td>"); out.println("<td>"+temp.getPrice()+"</td>"); out.println("<td>"+trans(temp.getDescription())+"</td>"); } catch(Exception e) {} out.println("<td><a href='modifyProduct_pro.jsp?productId="+temp.getProductId()+"'>更改</a>"); out.println("</tr>");}%></table><a href="index.html">返回</a></center></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -