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

📄 pagetest.jsp

📁 一个极其简单的struts分页源码
💻 JSP
字号:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>
<jsp:include page="/head.jsp"/>

<app:validatesession/>
<html><style type="text/css">
<!--
body {
	margin-left: 80px;
	margin-right: 80px;
}
-->
</style>
<body>



 
<table width="803" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="196" height="2"></td>
    <td width="416"></td>
    <td width="85"></td>
    <td width="106"></td>
  </tr>
  <tr>
    <td height="35">&nbsp;</td>
    <td>&nbsp;</td>
    <td valign="top"><html:link forward="mainMenu"><bean:message key="goto.mainMenu"/></html:link> &nbsp;&nbsp;</td>
    <td valign="top"><html:link forward="logoff"><bean:message key="link.logoff"/></html:link>&nbsp;</td>
  </tr>
  <tr>
    <td height="13"></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td height="69" valign="top"><html:link page="/do/setupForm"><html:img page="/ziye/add.gif" height="70" width="200"/></html:link>&nbsp;</td>
    <td colspan="3" rowspan="8" valign="top"><table width="607" height="36" border="1" cellpadding="1" cellspacing="1">
        <tr>
          <td width="84"><bean:message key="table.id"/></td>
          <td width="29"><bean:message key="table.name"/></td>
          <td width="44"><bean:message key="table.sex"/></td>
          <td width="45"><bean:message key="table.grade"/></td>
          <td width="94"><bean:message key="table.habit"/></td>
          <td width="97"><bean:message key="table.other"/></td>
          <td width="90"><bean:message key="table.date"/></td>
          <td width="81"><bean:message key="table.operator"/></td>
        </tr>
	    <logic:present name="result">
        <logic:iterate id="sibeans" name="result"  type="student_info.model.beans.S_I_Bean" >
        <logic:present name="sibeans">
       <tr>
         <td><bean:write name="sibeans" property="id" /></td>
         <td> <bean:write name="sibeans" property="name" /></td>
         <td><bean:write name="sibeans" property="sex" /></td>
         <td><bean:write name="sibeans" property="grade" /></td>
         <td><bean:write name="sibeans" property="habit" /></td>
         <td><bean:write name="sibeans" property="other" /></td>
         <td><bean:write name="sibeans" property="date" /></td>
         <td><a href="../do/update?id=<bean:write name="sibeans" property="id" />"><bean:message key="operator.update"/></a>
         <a href="../do/remove?id=<bean:write name="sibeans" property="id" />"><bean:message key="operator.remove"/></a></td>
       </tr>
       </logic:present>
       </logic:iterate>
       </logic:present>
	   </table>      
	   
	   <logic:equal name="page" property="hasNextPage" value="true">
       <html:link page="/do/page?action=nextPage"><bean:message key="table.nextpage"/></html:link> 
                 </logic:equal>
      <logic:equal name="page" property="hasPreviousPage" value="true">
       <html:link page="/do/page?action=previousPage"><bean:message key="table.previouspage"/></html:link>
                 </logic:equal>
	 
	  <bean:message key="table.total"/><bean:write name="page" property="totalRows"/>;<bean:message key="table.divide"/>
      <bean:write name="page" property="totalPages"/><bean:message key="table.page"/>,<bean:message key="table.current"/><bean:write name="page" property="currentPage"/><bean:message key="table.page"/>    </td>
  </tr>
  <tr>
    <td height="31">&nbsp;</td>
  </tr>
  <tr>
    <td height="69" valign="top"><html:link page="/do/searchForm"><html:img page="/ziye/search.gif" height="70" width="200"/></html:link>&nbsp;</td>
  </tr>
  <tr>
    <td height="31">&nbsp;</td>
  </tr>
  <tr>
    <td height="69" valign="top"><html:link page="/do/page"><html:img page="/ziye/display.gif" height="70" width="200"/></html:link>&nbsp;</td>
  </tr>
  <tr>
    <td height="28">&nbsp;</td>
  </tr>
  <tr>
    <td height="69" valign="top"><html:link forward="logoff"><html:img page="/ziye/logoff.gif" height="70" width="200"/></html:link>&nbsp;</td>
  </tr>
  <tr>
    <td height="34">&nbsp;</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -