org.apache.struts.action
Class ActionForward
- Serializable
public class 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.
- contextRelative - Should the
path
value be interpreted as context-relative (instead of
module-relative, if it starts with a '/' character? [false]
- name - Logical name by which this instance may be
looked up in relationship to a particular
ActionMapping
.
- path - Module-relative or context-relative URI to
which control should be forwarded, or an absolute or relative URI to
which control should be redirected.
- redirect - Set to
true
if the controller
servlet should call HttpServletResponse.sendRedirect()
on the associated path; otherwise false
. [false]
Since Struts 1.1 this class extends
ForwardConfig
and inherits the
contextRelative
property.
NOTE - This class would have been deprecated and
replaced by
org.apache.struts.config.ForwardConfig
except
for the fact that it is part of the public API that existing applications
are using.
Version:
- Craig R. McClanahan
ActionForward() - Construct a new instance with default values.
|
ActionForward(String path) - Construct a new instance with the specified path.
|
ActionForward(String name, String path, boolean redirect) - Construct a new instance with the specified path and redirect flag.
|
ActionForward(String name, String path, boolean redirect, boolean contextRelative) - Construct a new instance with the specified values.
|
ActionForward(String path, boolean redirect) - Construct a new instance with the specified path and redirect flag.
|
ActionForward
public ActionForward()
Construct a new instance with default values.
ActionForward
public ActionForward(String path)
Construct a new instance with the specified path.
path
- Path for this instance
ActionForward
public ActionForward(String name,
String path,
boolean redirect)
Construct a new instance with the specified path and redirect flag.
name
- Name of this instancepath
- Path for this instanceredirect
- Redirect flag for this instance
ActionForward
public ActionForward(String name,
String path,
boolean redirect,
boolean contextRelative)
Construct a new instance with the specified values.
name
- Name of this instancepath
- Path for this instanceredirect
- Redirect flag for this instancecontextRelative
- Context relative flag for this instance
ActionForward
public ActionForward(String path,
boolean redirect)
Construct a new instance with the specified path and redirect flag.
path
- Path for this instanceredirect
- Redirect flag for this instance
Copyright B) 2000-2005 - Apache Software Foundation