public class ServletDispatcherResult extends StrutsResultSupport
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:
includemethod is called.
This result type takes the following parameters:
<result name="success" type="dispatcher"> <param name="location">foo.jsp</param> </result>
This result follows the same rules from
RequestDispatcher, Serialized Form
|Constructor and Description|
|Modifier and Type||Method and Description|
Dispatches to the given location.
conditionalParse, conditionalParseCollection, execute, getLastFinalLocation, getLocation, setEncode, setLocation, setParse
public ServletDispatcherResult(String location)
public void setUrlHelper(UrlHelper urlHelper)
public void doExecute(String finalLocation, ActionInvocation invocation) throws Exception
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.