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 | ||||
---|---|---|---|---|
| ||||
<%@ taglib prefix="wws" uri="webwork/struts-tags" %> |
Now you can use the tags, like so:
Code Block | ||
---|---|---|
xml | xml | <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> ... |