|Apache Struts 2 Documentation > Home > Guides > Tag Developers Guide > JSP|
The default configuration (struts-default.xml) configures the Dispatcher Result as the default result, which works well with JavaServer Pages. Any JSP 1.2+ container can work with Struts 2 JSP tags immediately.
Then in test-success.jsp:
Where name is a property on your action. That's it!
The following are ways to obtain Application scope attributes, Session scope attributes, Request scope attributes, Request parameters and framework Context scope parameters:-
Assuming there's an attribute with name 'myApplicationAttribute' in the Application scope.
Assuming there's an attribute with name 'mySessionAttribute' in the Session scope.
Assuming there's an attribute with name 'myRequestAttribute' in the Request scope.
Assuming there's a request parameter myParameter (e.g. http://host/myApp/myAction.action?myParameter=one).
Assuming there's a parameter with the name myContextParam in our context.
There are a couple of ways to obtain Access to ValueStack from JSPs.