|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.action.ActionForward
An ActionForward represents a destination to which the
controller servlet, ActionServlet
, might be directed to
perform a RequestDispatcher.forward()
or
HttpServletResponse.sendRedirect()
to, as a result of
processing activities of an Action
class. Instances of this
class may be created dynamically as necessary, or configured in association
with an ActionMapping
instance for named lookup of potentially
multiple destinations for a particular mapping instance.
An ActionForward
has the following minimal set of properties.
Additional properties can be provided as needed by subclassses.
ActionMapping
.
true
if the controller
servlet should call HttpServletResponse.sendRedirect()
on the associated path; otherwise false
. [false]
Field Summary | |
protected java.lang.String |
name
The logical name of this forward. |
protected java.lang.String |
path
The context-relative (for a forward) or relative or absolute (for a redirect) URI path to be forwarded to. |
protected boolean |
redirect
Should this be a redirect instead of a forward? |
Constructor Summary | |
ActionForward()
Construct a new instance with default values. |
|
ActionForward(java.lang.String path)
Construct a new instance with the specified path. |
|
ActionForward(java.lang.String path,
boolean redirect)
Construct a new instance with the specified path and redirect flag. |
Method Summary | |
java.lang.String |
getName()
Return the name. |
java.lang.String |
getPath()
Return the path. |
boolean |
getRedirect()
Return the redirect flag. |
void |
setName(java.lang.String name)
Set the name. |
void |
setPath(java.lang.String path)
Set the path. |
void |
setRedirect(boolean redirect)
Set the redirect flag. |
java.lang.String |
toString()
Return a String version of this mapping. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.String name
protected java.lang.String path
protected boolean redirect
Constructor Detail |
public ActionForward()
public ActionForward(java.lang.String path)
path
- Path for this instancepublic ActionForward(java.lang.String path, boolean redirect)
path
- Path for this instanceredirect
- Redirect flag for this instanceMethod Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The new namepublic java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The new pathpublic boolean getRedirect()
public void setRedirect(boolean redirect)
redirect
- The new redirect flagpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |