Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Result Types > Dispatcher Result |
Includes or forwards to a view (usually a jsp). Behind the scenes Struts will use a RequestDispatcher, where the target servlet/JSP receives the same request/response objects as the original servlet/JSP. Therefore, you can pass data between them using request.setAttribute() - the Struts action is available. There are three possible ways the result can be executed:
|
|
<result name="success" type="dispatcher"> <param name="location">foo.jsp</param> </result> |