📄 modifyproduct.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page import="omega.domain.Product" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'modifyProduct.jsp' starting page</title>
<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>
<%List list=(List)request.getAttribute("pBean"); %>
<body>
<form name="form1" method="post" action="">
输入商品名称关键字:
<label>
<input type="text" name="textfield">
</label>
<label>
<input type="submit" name="Submit" value="提交">
</label>
<table width="99%" border="0">
<tr>
<td width="33%" height="18"><div align="center">商品名称<br></div></td>
<td width="18%"><div align="center">价格</div></td>
<td width="33%"><div align="center">加入日期<br></td>
<td colspan="2"><div align="center">操作<br></td>
</tr>
<%for(int i=0;i<list.size();i++){
Product pd=(Product)list.get(i);
%>
<tr>
<td><div align="center"><%=pd.getName()%></div></td>
<td><div align="center"><%=pd.getPrice()%></div></td>
<td><div align="center"><%=pd.getSaledate()%></div></td>
<td width="8%"><div align="center">
<a href="ViewProduct.do?action=del&id=<%=pd.getProductid()%>">删除</a>
</div></td>
<td width="8%"><div align="center">
<a href="ViewProduct.do?action=goupdate&id=<%=pd.getProductid()%>">修改</a>
</div></td>
</tr>
<%} %>
</table>
<p> </p>
</form>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -