You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

JSP tags are extensions of the generic Tags provided by the framework. You can get started almost immediately by simply knowing the generic structure in which the tags can be accessed: <saf:xxx> ... </saf:xxx>, where xxx is any of the tags supported by the framework.

Tag Library Definition (TLD)

The JSP TLD is included in the struts-action.jar. To use, just include the usual red-tape at the top of your JSP.

he following to your JSP:

<%@ taglib prefix="saf" uri="action" %>
<html><body>
<p>Now you can use the tags, like so:</p>
<saf:iterator value="people">
    <saf:property value="lastName"/>, <saf:property value="firstName"/>
</saf:iterator>
  • No labels