org.apache.struts.actions
クラス SwitchAction

java.lang.Object
  拡張org.apache.struts.action.Action
      拡張org.apache.struts.actions.SwitchAction

public class SwitchAction
extends Action

新たなモジュールへの切り替えを行い、その新たなモジュール内の(いくつかの方法で指定された) URI に対して処理の転送を行う標準的な Action です。

A standard Action that switches to a new module and then forwards control to a URI (specified in a number of possible ways) within the new module.

この Action に対しては以下のリクエストパラメータが有効です:

Valid request parameters for this Action are:

導入されたバージョン:
Struts 1.1
バージョン:
$Revision: 1.4 $ $Date: 2005/01/12 07:13:51 $
翻訳者:
日置 聡
校正者:
翻訳状況:
初稿(校正者募集中)

フィールドの概要
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
 

フィールドの詳細

log

protected static org.apache.commons.logging.Log log
Commons Logging インスタンス。
Commons Logging instance.


messages

protected static MessageResources messages
このパッケージのメッセージリソース。
The message resources for this package.

コンストラクタの詳細

SwitchAction

public SwitchAction()
メソッドの詳細

execute

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 内の execute
パラメータ:
mapping - このインスタンスを選択するために使用するActionMapping
@param mapping The ActionMapping used to select this instance
form - このリクエストのためのActionForm Bean(もしあれば)
@param form The optional ActionForm bean for this request (if any)
request - 処理中のHTTPリクエスト
@param request The HTTP request we are processing
response - 生成するHTTPレスポンス
@param response The HTTP response we are creating
例外:
java.lang.Exception - アプリケーションのビジネスロジックが例外をスローした場合
@exception Exception if the application business logic throws an exception


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation