com.opensymphony.webwork.dispatcher
Class ServletDispatcherResult

java.lang.Object
  extended bycom.opensymphony.webwork.dispatcher.WebWorkResultSupport
      extended bycom.opensymphony.webwork.dispatcher.ServletDispatcherResult
All Implemented Interfaces:
com.opensymphony.xwork.Result, Serializable, WebWorkStatics

public class ServletDispatcherResult
extends WebWorkResultSupport

Includes or forwards a view. There are three possible ways the result can be executed:

This result follows the same rules from WebWorkResultSupport.

Author:
Patrick Lightbody
See Also:
RequestDispatcher, Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
DEFAULT_PARAM, parse
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERLVET_DISPATCHER, SERVLET_CONFIG, SERVLET_DISPATCHER
 
Constructor Summary
ServletDispatcherResult()
           
 
Method Summary
 void doExecute(String finalLocation, com.opensymphony.xwork.ActionInvocation invocation)
          Dispatches to the given location.
 
Methods inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
conditionalParse, execute, setLocation, setParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletDispatcherResult

public ServletDispatcherResult()
Method Detail

doExecute

public void doExecute(String finalLocation,
                      com.opensymphony.xwork.ActionInvocation invocation)
               throws Exception
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.

Specified by:
doExecute in class WebWorkResultSupport
Parameters:
finalLocation - the location to dispatch to.
invocation - the execution state of the action
Throws:
Exception - if an error occurs. If the dispatch fails the error will go back via the HTTP request.

WebWork Project Page