| java.lang.Object com.opensymphony.webwork.dispatcher.WebWorkResultSupport com.opensymphony.webwork.dispatcher.ServletDispatcherResult
All known Subclasses: com.opensymphony.webwork.views.tiles.TilesResult,
ServletDispatcherResult | public class ServletDispatcherResult extends WebWorkResultSupport (Code) | |
Includes or forwards to a view (usually a jsp). Behind the scenes WebWork
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 WebWork action is
available.
There are three possible ways the result can be executed:
This result type takes the following parameters:
- location (default) - the location to go to after execution (ex. jsp).
- parse - true by default. If set to false, the location param will not be parsed for Ognl expressions.
Example:
<result name="success" type="dispatcher">
<param name="location">foo.jsp</param>
</result>
This result follows the same rules from
WebWorkResultSupport .
author: Patrick Lightbody See Also: javax.servlet.RequestDispatcher |
doExecute | public void doExecute(String finalLocation, ActionInvocation invocation) throws Exception(Code) | | Dispatches to the given location. Does its forward via a RequestDispatcher. If the
dispatch fails a 404 error will be sent back in the http response.
Parameters: finalLocation - the location to dispatch to. Parameters: invocation - the execution state of the action throws: Exception - if an error occurs. If the dispatch fails the error will go back via theHTTP request. |
|
|