public class ServletDispatcherResult extends StrutsResultSupport
include
method is called.forward
is made.include
is called.<result name="success" type="dispatcher"> <param name="location">foo.jsp</param> </result>This result follows the same rules from
StrutsResultSupport
.RequestDispatcher
,
Serialized FormDEFAULT_PARAM, DEFAULT_URL_ENCODING
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT
Constructor and Description |
---|
ServletDispatcherResult() |
ServletDispatcherResult(String location) |
Modifier and Type | Method and Description |
---|---|
void |
doExecute(String finalLocation,
ActionInvocation invocation)
Dispatches to the given location.
|
void |
setUrlHelper(UrlHelper urlHelper) |
conditionalParse, conditionalParseCollection, execute, getLastFinalLocation, getLocation, setEncode, setLocation, setParse
public ServletDispatcherResult()
public ServletDispatcherResult(String location)
public void setUrlHelper(UrlHelper urlHelper)
public void doExecute(String finalLocation, ActionInvocation invocation) throws Exception
doExecute
in class StrutsResultSupport
finalLocation
- the location to dispatch to.invocation
- the execution state of the actionException
- if an error occurs. If the dispatch fails the error will go back via the
HTTP request.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.