?? modifyproduct_pro.jsp
字號(hào):
<%@ page contentType="text/html; charset=gb2312" language="java" import="org.me.product.*,java.util.*,java.io.*" errorPage="error.jsp" %><%@ include file="trans.jsp"%><% request.setCharacterEncoding("gb2312");%><%--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="category" class="org.me.product.ViewCategory" scope="page"/><jsp:useBean id="productBean" class="org.me.product.ProductBean" scope="page"/><body><center><% String productId=request.getParameter("productId");Product product=productBean.getProductInfo(productId);%><h1>更改一個(gè)商品</h1><form action="modifyProduct_do.jsp" method="post"><table border="1" bgcolor="#0099CC"><tr><td>產(chǎn)品ID:<input type="text" name="productId" readonly="" value="<%=product.getProductId()%>"></td></tr><tr><td>產(chǎn)品名稱:<input type="text" name="name" value="<%=trans(product.getName())%>"></td></tr><tr><td>產(chǎn)品價(jià)格:<input type="text" name="price" value="<%=product.getPrice()%>"></td></tr><tr><td>=廠商=:<input type="text" name="producer" value="<%=trans(product.getProducer())%>"></td></tr><tr><td>=描述=:<input type="text" name="description" value="<%=trans(product.getDescription())%>"></td></tr><tr><td>=類別=:<select name="categoryId"> "<%=product.getCategoryId()%>"<% Collection categorys=category.getAllCategory();Iterator it=categorys.iterator();while(it.hasNext()){ Category temp=(Category)it.next(); out.println("<option value="+temp.getCategoryId()+">"+temp.getCategoryId()+"</option>");}%></select></td></tr><tr><td><input type=submit value=提交></td></tr></table></form></center></body></html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -