...
Where name is a property on your action. That's it!
Servlet / JSP Scoped Objects
The following are ways to obtained Application scope attributes, Session scope attributes, Request scope attributes, Request parameters and SAF Context scope parameters:-
Application Scope Attribute
Assuming there's an attribute with name 'myApplicationAttribute' in the Application scope.
Code Block |
---|
<saf:property value="%{#application.myApplicationAttribute}" />
|
Session Scope Attribute
Assuming there's an attribute with name 'mySessionAttribute' in the Session scope.
Code Block |
---|
<saf:property value="%{#session.mySessionAttribute}" />
|
Request Scope Attribute
Assuming there's an attribute with name 'myRequestAttribute' in the Request scope.
Code Block |
---|
<saf:property value="%{#request.myRequestAttribute}" />
|
Request Parameter
Assuming there's a request parameter myParameter (eg. http://host/myApp/myAction.action?myParameter=one).
Code Block |
---|
<saf:property value="%{#parameters.myParameter}" />
|
SAF Context Scope Parameter
Assuming there's a parameter with the name myContextParam in SAF context.
Code Block |
---|
<saf:property value="%{#myContextParam}" />
|
Tag Support
See the JSP Tags documentation for information on how to use the generic Tags provided by WebWork.