public class DefaultViewActionBean extends 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)
ActionBeansetContext in interface ActionBeancontext - ActionBeanContext associated with the current requestpublic ActionBeanContext getContext()
ActionBeangetContext in interface ActionBeanpublic Resolution view()
© Copyright 2005-2006, Stripes Development Team.