⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 querybook.jsp

📁 eclipse+struts+sqlserver 简单图书管理系统,内有文档
💻 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">共&nbsp;&nbsp;<font color="#ff0000"><bean:write name="count"/></font>&nbsp;&nbsp;条记录</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 + -