public class DefaultViewActionBean extends java.lang.Object implements ActionBean
A special purpose ActionBean that is used by the NameBasedActionResolver when a valid ActionBean cannot be found for a URL. If the URL can be successfully translated into a JSP URL and a JSP exists, an instance of this ActionBean is created that will forward the user to the appropriate JSP.
Because this ActionBean does not have a default no-arg constructor, even though it gets bound to a URL, if that URL is hit the ActionBean cannot be instantiated and therefore cannot be accessed directly by a user playing with the URL.
Constructor and Description |
---|
DefaultViewActionBean(Resolution view) |
Modifier and Type | Method and Description |
---|---|
ActionBeanContext |
getContext()
Implementations must implement this method to return a reference to the context object
provided to the ActionBean during the call to setContext(ActionBeanContext).
|
void |
setContext(ActionBeanContext context)
Called by the Stripes dispatcher to provide context to the ActionBean before invoking the
handler method.
|
Resolution |
view() |
public DefaultViewActionBean(Resolution view)
public void setContext(ActionBeanContext context)
ActionBean
setContext
in interface ActionBean
context
- ActionBeanContext associated with the current requestpublic ActionBeanContext getContext()
ActionBean
getContext
in interface ActionBean
public Resolution view()
? Copyright 2005-2006, Stripes Development Team.