includemylist.jsp
来自「是一个ibats和struts的整合的实例」· JSP 代码 · 共 35 行
JSP
35 行
<bean:define id="myList" name="accountBean" property="myList"/>
<logic:present name="myList">
<p>
Pet Favorites
<br/>
Shop for more of your favorite pets here.
</p>
<ul>
<logic:iterate id="product" name="myList">
<li><html:link paramId="productId" paramName="product" paramProperty="productId" page="/shop/viewProduct.shtml">
<bean:write name="product" property="name"/></html:link>
(<bean:write name="product" property="productId"/>)</li>
</logic:iterate>
</ul>
<p>
<logic:notEqual name="myList" property="firstPage" value="true">
<a href="switchMyListPage.shtml?pageDirection=previous&account.listOption=<bean:write name="accountBean"
property="account.listOption"/>&account.bannerOption=< bean:write name="accountBean"
property="account.bannerOption"/>"><<Prev</a>
</logic:notEqual>
<logic:notEqual name="myList" property="lastPage" value="true">
<a href="switchMyListPage.shtml?pageDirection=next&account.listOption=<bean:write name="accountBean"
property="account.listOption"/>&account.bannerOption=< bean:write name="accountBean"
property="account.bannerOption"/>">Next >></a>
</logic:notEqual>
</p>
</logic:present>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?