JSP CUSTOM TAG LIBRARIES
Examples: page tag
1. This code displays the filename items from the Image List view and includes a Previous page and Next page button below the view. It also displays the number of the current page out of the total number of pages that the view uses.
<domino:view viewname="Image List">
Images
<domino:page id="plinfo">
<domino:viewloop>
<a...><domino:item name="filename"/></a><br>
</domino:viewloop>
<domino:pageprev/> Page <%=plinfo.getPage()%> of <%=plinfo.getPageCount()%>
<domino:pagenext/><br>
</domino:page>
</domino:view>
2. This code displays a view that is structured using a table and that displays the contents of the second column of the current database view. It includes a Next button at the bottom of the view that a user can click to display the next page.
<%@ taglib uri="WEB-INF/lib/domtags.tld" prefix="domino" %>
<%@ page info="Test Session" language="java" import="lotus.domino.*" errorPage="error.jsp" %>
<html>
<body>
<h1>Session Test</h1>
<domino:preserve name="counter" /><domino:preserve name="view" />
<table>
<domino:view id="dbview" dbname="customers\\enduser.nsf" viewname='<%=request.getParameter("view")%>' user="Joan Jetson" password="Rastro">
<domino:page>
<domino:viewloop>
<tr><td><domino:viewitem col="2"/></td></tr>
</domino:viewloop>
<domino:pagenext />
</domino:page>
</domino:view>
</table>
</body>
</html>
See Also
page tag
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary