|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.apache.struts.actions.LocaleAction
(language, country, & page)のセットであるリクエストレベル変数に基づき、
ユーザのLocaleを変えてページにフォワードするActionの実装です。
| フィールドの概要 | |
private org.apache.commons.logging.Log |
log
Commons Loggingインスタンス。 |
| クラス org.apache.struts.action.Action から継承したフィールド |
defaultLocale, servlet |
| コンストラクタの概要 | |
LocaleAction()
|
|
| メソッドの概要 | |
ActionForward |
execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
ActionFormの変数に基づいてユーザのLocaleを変えます。
|
| クラス 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 |
| フィールドの詳細 |
private org.apache.commons.logging.Log log
Commons Loggingインスタンス。
| コンストラクタの詳細 |
public LocaleAction()
| メソッドの詳細 |
public ActionForward execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
ActionFormの変数に基づいてユーザのLocaleを変えます。
Change the user's {@link java.util.Locale} based on {@link ActionForm} properties.
与えられたフォームのlanguageとcountryプロパティをこのActionは捜して、
適切なLocaleオブジェクトを生成します。
そしてセッションのStruts Localeとしてこのオブジェクトを設定します。
DynaActionFormを含む全てのActionFormでこのプロパティを使用することが出来ます。
This Action looks for language and
country properties on the given form, constructs an
appropriate Locale object, and sets it as the Struts Locale for this
user's session.
Any ActionForm, including a {@link DynaActionForm}, may be used.
pageプロパティもまた用意された場合、
Localeを設定した後、
コントロールはURIパスにフォワードされます。
それ以外の場合、
"success"へフォワードされます。
If a page property is also provided, then after
setting the Locale, control is forwarded to that URI path.
Otherwise, control is forwarded to "success".
Action 内の executemapping - このインスタンスを選択する際に使用されたActionMapping
form - このリクエストに対応するActionForm Bean(もしあれば)
request - 処理中のHTTPリクエスト
response - 生成中のHTTPレスポンス
java.lang.Exception - 入/出力エラーまたはサーブレット例外が生じた場合
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||