public class ActionForward extends Object
An ActionForward represents a destination to which the controller, RequestProcessor, 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.
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.
org.apache.struts.config.ForwardConfig
を継承しないように変更する。org.apache.struts.action.ActionForward
コンストラクタと説明 |
---|
ActionForward() |
ActionForward(nablarch.fw.web.HttpRequest nabHttpRequest,
nablarch.fw.ExecutionContext context)
コンストラクタ。
|
ActionForward(String path)
Construct a new instance with the specified path.
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getName()
名を取得する。
|
String |
getPath()
パスを取得する。
|
void |
setName(String name)
名を設定する。
|
void |
setPath(String path)
パスを設定する。
|
nablarch.fw.web.HttpResponse |
toResponse()
リスポンスを返却する。
|
public ActionForward()
public ActionForward(nablarch.fw.web.HttpRequest nabHttpRequest, nablarch.fw.ExecutionContext context)
nabHttpRequest
- リクエストcontext
- コンテキストpublic ActionForward(String path)
path
- Path for this instancepublic String getPath()
public void setPath(String path)
path
- パスpublic String getName()
public void setName(String name)
name
- 名public nablarch.fw.web.HttpResponse toResponse()