|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.terasoluna.fw.web.struts.form.ActionFormUtil
public class ActionFormUtil
Utility class related to the action form.
In this class, the functions which are used in action form processing are consolidated as utilities.
FormEx,
DynaValidatorActionFormEx,
ValidatorActionFormEx| Constructor Summary | |
|---|---|
ActionFormUtil()
|
|
| Method Summary | |
|---|---|
static void |
clearActionForm(javax.servlet.http.HttpSession session)
Utility method which deletes all the action forms starting with "_" and stored in session scope. |
static void |
clearActionForm(javax.servlet.http.HttpSession session,
java.lang.String exclude)
Utility method which deletes all the action forms starting with "_" and stored in session scope. |
static java.lang.String |
getActionFormName(javax.servlet.http.HttpServletRequest req)
Fetches the action form name from the action mapping which is set as HTTP request attribute. |
static org.apache.struts.config.FormPropertyConfig |
getPropertyConfig(java.lang.String fieldName,
org.apache.struts.action.ActionMapping mapping)
Fetches the configuration information of specified field. |
static void |
initialize(org.apache.struts.action.DynaActionForm form,
java.lang.String fieldName,
org.apache.struts.action.ActionMapping mapping)
Initializes the specified property value of DynaActionForm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionFormUtil()
| Method Detail |
|---|
public static org.apache.struts.config.FormPropertyConfig getPropertyConfig(java.lang.String fieldName,
org.apache.struts.action.ActionMapping mapping)
fieldName - Field namemapping - Mapping information
public static void initialize(org.apache.struts.action.DynaActionForm form,
java.lang.String fieldName,
org.apache.struts.action.ActionMapping mapping)
form - DynaActionForm instance fieldName - Property to be initializedmapping - Action mapping
public static void clearActionForm(javax.servlet.http.HttpSession session,
java.lang.String exclude)
The action forms specified by exclude parameter are not to be deleted.
session - HTTP sessionexclude - Action form name which is not to be deletedpublic static void clearActionForm(javax.servlet.http.HttpSession session)
session - HTTP sessionpublic static java.lang.String getActionFormName(javax.servlet.http.HttpServletRequest req)
req - HTTP request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||