jodd.madvoc.result
Class ServletDispatcherResult

java.lang.Object
  extended by jodd.madvoc.result.ActionResult
      extended by jodd.madvoc.result.ServletDispatcherResult

public class ServletDispatcherResult
extends ActionResult

Dispatches to a JSP page.

See Also:
ServletRedirectResult

Field Summary
protected static java.lang.String EXTENSION
           
static java.lang.String NAME
           
 
Fields inherited from class jodd.madvoc.result.ActionResult
initialized, type
 
Constructor Summary
ServletDispatcherResult()
           
 
Method Summary
protected  java.net.URL locateTarget(javax.servlet.http.HttpServletRequest request, java.lang.String target)
          Locates target.
 void render(ActionRequest actionRequest, java.lang.Object resultObject, java.lang.String resultValue, java.lang.String resultPath)
          Dispatches to the JSP location created from result value and JSP extension.
 
Methods inherited from class jodd.madvoc.result.ActionResult
getType, init, initialized, isInitialized, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

EXTENSION

protected static final java.lang.String EXTENSION
See Also:
Constant Field Values
Constructor Detail

ServletDispatcherResult

public ServletDispatcherResult()
Method Detail

render

public void render(ActionRequest actionRequest,
                   java.lang.Object resultObject,
                   java.lang.String resultValue,
                   java.lang.String resultPath)
            throws java.lang.Exception
Dispatches to the JSP location created from result value and JSP extension. Does its forward via a RequestDispatcher. If the dispatch fails a 404 error will be sent back in the http response, what will produce error 500.

Specified by:
render in class ActionResult
Parameters:
actionRequest - action request
resultObject - reference to action method result, may be null
resultValue - string representation of result, may be null
resultPath - result path
Throws:
java.lang.Exception

locateTarget

protected java.net.URL locateTarget(javax.servlet.http.HttpServletRequest request,
                                    java.lang.String target)
                             throws java.lang.Exception
Locates target.

Throws:
java.lang.Exception


Copyright © 2003-2011 Jodd Team