📄 product.jsp
字号:
<%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld"%>
<%@ taglib prefix="jb" uri="/WEB-INF/jb-common.tld"%>
<%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld"%>
<%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld"%>
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="script/common.js"></script>
</head>
<body>
<html:form action="/product.do">
<html:hidden property="operate" value="toProductList" />
<div class="page_title">
产品查询
</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">
帮助
</button>
<input class="common_button" type="submit" value="查询"/>
</div>
<table class="query_form_table">
<tr>
<th>
名称
</th>
<td>
<html:text property="product.prodName" />
</td>
<th>
型号
</th>
<td>
<html:text property="product.prodType" />
</td>
<th>
批次
</th>
<td>
<html:text property="product.prodBatch" />
</td>
</tr>
</table>
<br />
<table class="data_list_table">
<tr>
<th>
编号
</th>
<th>
名称
</th>
<th>
型号
</th>
<th>
等级/批次
</th>
<th>
单位
</th>
<th>
单价(元)
</th>
<th>
备注
</th>
</tr>
<logic:iterate id="product" name="productForm"
type="org.jb.y2t308.team3.entity.Product"
property="pageResult.list" indexId="index">
<tr>
<td class="list_data_number">
${index+1 }
</td>
<td class="list_data_ltext">
<bean:write name="product" property="prodName" />
</td>
<td class="list_data_text">
<bean:write name="product" property="prodType" />
</td>
<td class="list_data_text">
<bean:write name="product" property="prodBatch" />
</td>
<td class="list_data_text">
<bean:write name="product" property="prodUnit" />
</td>
<td class="list_data_number">
<bean:write name="product" property="prodPrice" />
</td>
<td class="list_data_text">
<bean:write name="product" property="prodMemo"/>
</td>
</tr>
</logic:iterate>
<logic:empty name="productForm" property="pageResult.list">
<tr>
<td class="list_data_text" colspan="6">
没有记录
</td>
</tr>
</logic:empty>
<tr>
<th colspan="6" class="pager">
<!-- gHost分页Test -->
<div class="paper">
<jb:pager form="productForm" />
</div>
</th>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -