org.apache.struts.actions
クラス IncludeAction

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

public class IncludeAction
extends Action

対応する ActionMappingparameter プロパティに設定された コンテキスト相対 URIをインクルードする Action です。 これは Struts の(フォームビーンの処理等の)コントローラサーブレットのもつ機能の優位性を保持したまま Struts とサーブレット(またはJSP)で実装された他のビジネスロジックコンポーネントとを結びつけるために使用することができます。

An Action that includes the context-relative URI specified by the parameter property of our associated ActionMapping. This can be used to integrate Struts with other business logic components that are implemented as servlets (or JSP pages), but still take advantage of the Struts controller servlet's functionality (such as processing of form beans).

このアクションを使用する場合には、以下のようなエントリを struts-config.xml ファイルに記述します:

To configure the use of this Action in your struts-config.xml file, create an entry like this:}

<action path="/saveSubscription" type="org.apache.struts.actions.IncludeAction" name="subscriptionForm" scope="request" input="/subscription.jsp" parameter="/path/to/processing/servlet">

このエントリでは parameter 属性で指定されたコンテキスト相対 URI の処理をインクルードします。

which will include the context-relative URI specified by the parameter attribute.

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

フィールドの概要
protected static MessageResources messages
          このパッケージのメッセージリソース。
 
クラス org.apache.struts.action.Action から継承したフィールド
defaultLocale, servlet
 
コンストラクタの概要
IncludeAction()
           
 
メソッドの概要
 ActionForward execute(ActionMapping mapping, ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          指定されたHTTP リクエストを処理し、対応する HTTP レスポンスを返します(または HTTP レスポンスを生成する他の Web コンポーネントに対して転送を行います)。
 
クラス 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
 

フィールドの詳細

messages

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

コンストラクタの詳細

IncludeAction

public IncludeAction()
メソッドの詳細

execute

public ActionForward execute(ActionMapping mapping,
                             ActionForm form,
                             javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws java.lang.Exception
指定されたHTTP リクエストを処理し、対応する 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). Return an ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.

オーバーライド:
クラス Action 内の execute
パラメータ:
mapping - このインスタンスを選択する際に使用された ActionMapping
The ActionMapping used to select this instance
form - このリクエストに対応する ActionForm(もしあれば)
The optional ActionForm bean for this request (if any)
request - 処理中のHTTPリクエスト
The HTTP request we are processing
response - 生成中のHTTPレスポンス
The HTTP response we are creating
例外:
java.lang.Exception - 例外が発生した場合
if an error occurs


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