THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
The application, session and request objects are available from within {{ Wiki Markup s
}} tags in jsp wherever ognl can be evaluated. Use the #application, #session, or #request syntax to get the object and access values by their keys using \ ['key'\].
Code Block | ||
---|---|---|
| ||
<s:property value="#application\['foo'\]"/> <s:property value="#session\['baz'\]"/> |
Conversely, if you would like to make Struts 2 objects available to a JSP/JSTL scope, the s:set
tag may be used like this:
...