Struts 2 > Home > Guides > Extension Guide > JSTL |

Struts 2
JSTL
Edit Page Browse Space Add Page Add News
Added by plightbo, last edited by Ted Husted on Sep 02, 2006 (view change) show comment hide comment
Comment:
Update formatting
View page history

| About JSTL The JavaServer Pages Standard Tag Library (JSTL) encapsulates as simple tags the core functionality common to many Web applications. JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization tags, and SQL tags.

JSTL integration is built into the framework - there are no steps required to enable it. Simply refer to your JSTL expressions just as you would with a normal SAF JSP tag, such as the property tag.

| Javadoc: (org.apache.struts.action2.dispatcher.WebWorkRequestWrapper)
Content pulled from external source. Click here to refresh.
All WebWork requests are wrapped with this class, which provides simple JSTL accessibility. This is because JSTL works with request attributes, so this class delegates to the value stack except for a few cases where required to prevent infinite loops. Namely, we don't let any attribute name with "#" in it delegate out to the value stack, as it could potentially cause an infinite loop. For example, an infinite loop would take place if you called: request.getAttribute("#attr.foo").