JSP CUSTOM TAG LIBRARIES
<%@taglib uri="WEB-INF/lib/domtags.tld" prefix="domino" %> <html> <body> <domino:view dbname="myDb.nsf" viewname="All"> <table border =1> <tr><th>Title<th>Date<th>Author</tr> <domino:viewloop> <tr> <td><domino:formlink href="displaysForm.jsp"> <domino:viewitem name="Title"/> </domino:formlink> <td><domino:viewitem name="LastAccessed" format ="date=short"/> <td><domino:viewitem name="Author"/> </tr> </domino:viewloop> </table> </domino:view> </body> </html>
The following code represents the form created with the displaysForm.jsp to which the formlink tag jumps.
<%@ taglib uri="WEB-INF/lib/domtags.tld" prefix="domino" %> <html> <body> <domino:form name="myForm" schema="Article" dbname="myDatabase.nsf"> <table> <tr> <td>Author:<td><domino:item name="Author"/></tr> <tr> <td>Title:<td><domino:input name="Title" size="80"/></tr> <tr> <td colspan=2><domino:richtext width="100%" name="Body"/></tr> <tr> <td colspan=2><domino:editdoc/><domino:savedoc/></tr> </table> </domino:form> </body> </html>
See Also