Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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

Tag Library Definition (TLD)

The JSP TLD is included in webworkthe struts-core.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:. To use, just include the usual red-tape at the top of your JSP.

Code Block
xml
xml

<%@ taglib prefix="wws" uri="webwork/struts-tags" %>

Now you can use the tags, like so:

Code Block
xmlxml

<ww
<html>
  <body>
    <p>Now you can use the tags, like so:</p>
    <s:iterator value="people">
    <ww  <s:property value="lastName"/>, <ww<s:property value="firstName"/>
    </wws:iterator>
    ...

Next: Freemarker