|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.terasoluna.fw.web.struts.form.ActionFormUtil
public class ActionFormUtil
アクションフォーム関連のユーティリティクラス。
アクションフォーム処理関連で用いられる機能をユーティリティ として集約している。
FormEx
,
DynaValidatorActionFormEx
,
ValidatorActionFormEx
コンストラクタの概要 | |
---|---|
ActionFormUtil()
|
メソッドの概要 | |
---|---|
protected static void |
checkIndexLength(int index)
インデックスの長さをチェックする。 |
static void |
clearActionForm(javax.servlet.http.HttpSession session)
セッションスコープに格納された論理名が"_"で 始まる全てのアクションフォームを削除するユーティリティメソッド。 |
static void |
clearActionForm(javax.servlet.http.HttpSession session,
String exclude)
セッションスコープに格納された論理名が"_"で始まる全ての アクションフォームを削除するユーティリティメソッド。 |
static String |
getActionFormName(javax.servlet.http.HttpServletRequest req)
HTTPリクエスト属性として設定されているアクションマッピングから アクションフォーム名を取得する。 |
protected static int |
getFormArrayMaxLength(String formArrayMaxLength)
インデックス長の最大値を返却する。 |
static org.apache.struts.config.FormPropertyConfig |
getPropertyConfig(String fieldName,
org.apache.struts.action.ActionMapping mapping)
指定したフィールドの設定情報を取得する。 |
static void |
initialize(org.apache.struts.action.DynaActionForm form,
String fieldName,
org.apache.struts.action.ActionMapping mapping)
DynaActionFormの指定されたプロパティ値を 初期化する。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public ActionFormUtil()
メソッドの詳細 |
---|
protected static int getFormArrayMaxLength(String formArrayMaxLength)
formArrayMaxLength
- インデックス長の最大値文字列
protected static void checkIndexLength(int index) throws IllegalArgumentException
インデックス長が最大値よりも大きい場合はIllegalArgumentException
をスローする。 最大値のデフォルトは5000であり、プロパティファイルに設定可能である。
PropertyUtil
からアクセスできるプロパティファイルにform.array.max.length
のキーに対して最大値を設定すること。
・form.array.max.length
の設定がない
・設定値がintでパース出来ない
の場合はデフォルト値を使用する。
index
- インデックス位置
IllegalArgumentException
- インデックス長が最大値よりも大きい場合public static org.apache.struts.config.FormPropertyConfig getPropertyConfig(String fieldName, org.apache.struts.action.ActionMapping mapping)
fieldName
- フィールド名mapping
- マッピング情報
public static void initialize(org.apache.struts.action.DynaActionForm form, String fieldName, org.apache.struts.action.ActionMapping mapping)
form
- DynaActionForm のインスタンスfieldName
- 初期化対象のプロパティmapping
- アクションマッピングpublic static void clearActionForm(javax.servlet.http.HttpSession session, String exclude)
ただし exclude で指定されたアクションフォームは削除しない。
session
- HTTPセッションexclude
- 削除対象としないアクションフォーム名public static void clearActionForm(javax.servlet.http.HttpSession session)
session
- HTTPセッションpublic static String getActionFormName(javax.servlet.http.HttpServletRequest req)
req
- HTTPリクエスト
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |