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

Compare with Current View Page History

« Previous Version 15 Next »

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

Tag Library Definition (TLD)

The JSP TLD is included in webwork.jar, meaning you can define the TLD as explained in the web.xml documentation. Once you've done this, you you can add the following to your JSP:

<%@ taglib prefix="ww" uri="webwork" %>

Now you can use the tags, like so:

<ww:iterator value="people">
    <ww:property value="lastName"/>, <ww:property value="firstName"/>
</ww:iterator>
  • No labels