|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.chain.AbstractPopulateActionForm
Populate the form bean (if any) for this request.
Field Summary | |
private java.lang.String |
actionConfigKey
|
private java.lang.String |
actionFormKey
|
private java.lang.String |
cancelKey
|
Constructor Summary | |
AbstractPopulateActionForm()
|
Method Summary | |
boolean |
execute(org.apache.commons.chain.Context context)
Populate the form bean (if any) 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. |
protected void |
handleCancel(org.apache.commons.chain.Context context,
org.apache.struts.config.ActionConfig actionConfig,
org.apache.struts.action.ActionForm actionForm)
|
protected void |
populate(org.apache.commons.chain.Context context,
org.apache.struts.config.ActionConfig actionConfig,
org.apache.struts.action.ActionForm actionForm)
Base implementation assumes that the Context
can be cast to WebContext and copies the parameter
values from the context to the ActionForm . |
protected abstract void |
reset(org.apache.commons.chain.Context context,
org.apache.struts.config.ActionConfig actionConfig,
org.apache.struts.action.ActionForm actionForm)
Call the reset() method on the specified form bean. |
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. |
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
Constructor Detail |
public AbstractPopulateActionForm()
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 boolean execute(org.apache.commons.chain.Context context) throws java.lang.Exception
Populate the form bean (if any) for this request.
execute
in interface org.apache.commons.chain.Command
context
- The Context
for the current request
false
so that processing continues
java.lang.Exception
protected abstract void reset(org.apache.commons.chain.Context context, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.action.ActionForm actionForm)
Call the reset()
method on the specified form bean.
context
- The context for this reqestactionConfig
- The actionConfig for this requestactionForm
- The form bean for this requestprotected void populate(org.apache.commons.chain.Context context, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.action.ActionForm actionForm) throws java.lang.Exception
Base implementation assumes that the Context
can be cast to WebContext
and copies the parameter
values from the context to the ActionForm
.
Note that this implementation does not handle "file uploads"
because as far as I know there is no API for handling that without
committing to servlets -- in a servlet environment, use
org.apache.struts.chain.servlet.PopulateActionForm
.
context
- actionConfig
- actionForm
-
java.lang.Exception
protected void handleCancel(org.apache.commons.chain.Context context, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.action.ActionForm actionForm) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |