?? querybook.jsp
字號:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp" %>
<html:html>
<head>
<title>JSP for QueryBookForm form</title>
</head>
<body>
<table width="800" border="0" cellspacing="9" cellpadding="0" align="center">
<tr>
<td><html:errors/></td>
</tr>
</table>
<table width=800 align="center">
<tr><td>
<html:form action="/queryBook">
查詢圖書按: <html:select property="searchType">
<html:option value="bid" >圖書編號</html:option>
<html:option value="bname" >圖書名稱</html:option>
<html:option value="bauthor" >圖書作者</html:option>
<html:option value="bkind">圖書分類</html:option>
</html:select>
<html:errors property="searchType"/>
<html:text property="condition"/><html:errors property="condition"/><html:submit>查詢</html:submit>
</html:form>
</td>
<td><logic:present name="count" scope="request">共 <font color="#ff0000"><bean:write name="count"/></font> 條記錄</logic:present></td>
</tr>
</table>
<table width="800" border=0 align="center" cellpadding="0" cellspacing="1" >
<tr height="2"><hr/></tr>
<tr bgcolor="#009966">
<td>圖書編號</td>
<td>圖書名稱</td>
<td>圖書作者</td>
<td>圖書分類</td>
<td>出版社</td>
<td>出版日期</td>
<td>圖書數量</td>
<td>圖書定價</td>
</tr>
<logic:present name="books" scope="request">
<logic:iterate id="show" name="books" scope="request">
<tr >
<td><bean:write name="show" property="bid" /></td>
<td><bean:write name="show" property="bname" /></td>
<td><bean:write name="show" property="bauthor" /></td>
<td><bean:write name="show" property="bkind" /></td>
<td><bean:write name="show" property="bpublish" /></td>
<td><bean:write name="show" property="bdt_publish" /></td>
<td><bean:write name="show" property="bnumber" /></td>
<td><bean:write name="show" property="bprice" /></td>
</tr>
</logic:iterate>
</logic:present>
</table>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -