jodd.madvoc.result
Class ServletDispatcherResult
java.lang.Object
jodd.madvoc.result.ActionResult
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
|
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ServletDispatcherResult
public ServletDispatcherResult()
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 requestresultObject - reference to action method result, may be nullresultValue - string representation of result, may be nullresultPath - 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-2010 Jodd Team