|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.apache.struts.actions.SwitchAction
新たなモジュールへの切り替えを行い、その新たなモジュール内の(いくつかの方法で指定された) URI に対して処理の転送を行う標準的な Action です。
この Action に対しては以下のリクエストパラメータが有効です:
ModuleConfig オブジェクトをリクエストの属性に保持するため、以降の処理は新たなモジュールの元で行われる。
ModuleConfig object will be stored as a
request attribute, so any subsequent logic will assume the new
module.
| フィールドの概要 | |
protected static org.apache.commons.logging.Log |
log
Commons Logging インスタンス。 |
protected static MessageResources |
messages
このパッケージのメッセージリソース。 |
| クラス org.apache.struts.action.Action から継承したフィールド |
defaultLocale, servlet |
| コンストラクタの概要 | |
SwitchAction()
|
|
| メソッドの概要 | |
ActionForward |
execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
指定されたHTTPリクエストを処理して、 対応するHTTPレスポンスを生成します。 |
| クラス org.apache.struts.action.Action から継承したメソッド |
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected static org.apache.commons.logging.Log log
protected static MessageResources messages
| コンストラクタの詳細 |
public SwitchAction()
| メソッドの詳細 |
public ActionForward execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
Action の記述: 指定されたHTTPリクエストを処理して、
対応するHTTPレスポンスを生成します。
(またはレスポンスを生成する他のWebコンポーネントにリクエストをフォワードします。)
併せてビジネスロジックがスローする例外のハンドリングも提供します。
コントロールをどこに/どうやってフォワードすべきかが記述されたActionForwardインスタンスもしくは、
レスポンスが既に完了している場合はnullを返します。
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it),
with provision for handling exceptions thrown by the business logic.
Return an {@link ActionForward} instance describing where and how
control should be forwarded, or null if the response
has already been completed.
Action 内の executemapping - このインスタンスを選択するために使用するActionMapping
form - このリクエストのためのActionForm Bean(もしあれば)
request - 処理中のHTTPリクエスト
response - 生成するHTTPレスポンス
java.lang.Exception - アプリケーションのビジネスロジックが例外をスローした場合
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||