|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.chain.AbstractValidateActionForm
Validate the properties of the form bean for this request. If there are any validation errors, execute the specified command; otherwise, proceed normally.
Field Summary | |
private java.lang.String |
actionConfigKey
|
private java.lang.String |
actionFormKey
|
private java.lang.String |
cancelKey
|
private static org.apache.commons.logging.Log |
log
|
private java.lang.String |
validKey
|
Constructor Summary | |
AbstractValidateActionForm()
|
Method Summary | |
boolean |
execute(org.apache.commons.chain.Context context)
Validate the properties of the form bean for this request. |
java.lang.String |
getActionConfigKey()
Return the context attribute key under which the ActionConfig for the currently selected application
action is stored. |
java.lang.String |
getActionFormKey()
Return the context attribute key under which the ActionForm for the currently selected application
action is stored. |
java.lang.String |
getCancelKey()
Return the context attribute key under which the cancellation flag for this request is stored. |
java.lang.String |
getValidKey()
Return the context attribute key under which the validity flag for this request is stored. |
void |
setActionConfigKey(java.lang.String actionConfigKey)
Set the context attribute key under which the ActionConfig for the currently selected application
action is stored. |
void |
setActionFormKey(java.lang.String actionFormKey)
Set the context attribute key under which the ActionForm for the currently selected application
action is stored. |
void |
setCancelKey(java.lang.String cancelKey)
Set the context attribute key under which the cancellation flag for this request is stored. |
void |
setValidKey(java.lang.String validKey)
Set the context attribute key under which the validity flag for this request is stored. |
protected abstract org.apache.struts.action.ActionErrors |
validate(org.apache.commons.chain.Context context,
org.apache.struts.config.ActionConfig actionConfig,
org.apache.struts.action.ActionForm actionForm)
Call the validate() method of the specified form bean,
and return the resulting ActionErrors object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String actionConfigKey
private java.lang.String actionFormKey
private java.lang.String cancelKey
private java.lang.String validKey
private static final org.apache.commons.logging.Log log
Constructor Detail |
public AbstractValidateActionForm()
Method Detail |
public java.lang.String getActionConfigKey()
Return the context attribute key under which the
ActionConfig
for the currently selected application
action is stored.
public void setActionConfigKey(java.lang.String actionConfigKey)
Set the context attribute key under which the
ActionConfig
for the currently selected application
action is stored.
actionConfigKey
- The new context attribute keypublic java.lang.String getActionFormKey()
Return the context attribute key under which the
ActionForm
for the currently selected application
action is stored.
public void setActionFormKey(java.lang.String actionFormKey)
Set the context attribute key under which the
ActionForm
for the currently selected application
action is stored.
actionFormKey
- The new context attribute keypublic java.lang.String getCancelKey()
Return the context attribute key under which the cancellation flag for this request is stored.
public void setCancelKey(java.lang.String cancelKey)
Set the context attribute key under which the cancellation flag for this request is stored.
cancelKey
- The new context attribute keypublic java.lang.String getValidKey()
Return the context attribute key under which the validity flag for this request is stored.
public void setValidKey(java.lang.String validKey)
Set the context attribute key under which the validity flag for this request is stored.
validKey
- The new context attribute keypublic boolean execute(org.apache.commons.chain.Context context) throws java.lang.Exception
Validate the properties of the form bean for this request. If there are any validation errors, execute the child commands in our chain; otherwise, proceed normally.
execute
in interface org.apache.commons.chain.Command
context
- The Context
for the current request
false
so that processing continues, if there are
no validation errors; otherwise true
java.lang.Exception
protected abstract org.apache.struts.action.ActionErrors validate(org.apache.commons.chain.Context context, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.action.ActionForm actionForm)
Call the validate()
method of the specified form bean,
and return the resulting ActionErrors
object.
context
- The context for this requestactionConfig
- The ActionConfig
for this requestactionForm
- The form bean for this request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |