|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
If an action is called, all relevant informations (like the session, request, response object) are passed by a context object which implements this interface.
Method Summary | |
void |
addError(java.lang.String key,
java.lang.Throwable t)
Serves to include an exception in the global error collection. |
void |
addErrors(org.apache.struts.action.ActionMessages errorList)
Adds an error collection |
void |
addGlobalError(java.lang.String key)
Saves a general error (without reference to an input field) and is used to present error messages upon returning from a sub-dialog within the calling dialog. |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1)
Saves a general error (without reference to an input field) |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves a general error (without reference to an input field) |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves a general error (without reference to an input field) |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves a general error (without reference to an input field) |
void |
addGlobalMessage(java.lang.String key)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves a message without reference to a Property. |
void |
addMessages(org.apache.struts.action.ActionMessages messageList)
Adds an message collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves an error to a Property in the error collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves a message for a Property in the Message collection |
void |
consumeStrutsMessages()
This method transfers all existing Struts errors and messages into the frameworks message store. |
org.apache.struts.action.ActionForm |
form()
Returns the action form |
void |
forward(org.apache.struts.action.ActionForward forward)
Sets the forward |
void |
forwardByName(java.lang.String forwardName)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object p1)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object[] params)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object p1,
java.lang.Object p2)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Forwards to the Action specified by the Name |
void |
forwardToAction(java.lang.String actionName)
Forwards to the specified Action |
void |
forwardToAction(java.lang.String actionName,
boolean redirect)
Forwards to the specified Action |
void |
forwardToAction(java.lang.String actionName,
java.util.Map params)
Forwards to the specified Action |
void |
forwardToAction(java.lang.String actionName,
java.util.Map params,
boolean redirect)
Forwards to the specified Action |
void |
forwardToInput()
Forwards the Request to the Input, which is specified for the Action in the struts configuration. |
void |
forwardToResponse()
The next Forward should be directly directed to the Response |
org.apache.struts.action.ActionMessages |
getErrors()
Gets the error collection |
org.apache.struts.action.ActionForward |
getForward()
Gets the forward |
org.apache.struts.action.ActionMessages |
getMessages()
Returns the message collection |
boolean |
hasErrors()
Checks whether there are error messages. |
boolean |
hasMessages()
Checks whether there are messages present. |
void |
invalidDialogContext(java.lang.String messageKey)
Generates a standardized error message if no DialogContext exists. |
boolean |
isHandeled()
If an element (control, action class) has handled the request it can set this flag, so that the request is not processed a second time by an other element. |
org.apache.struts.action.ActionMapping |
mapping()
Returns the action mapping object |
void |
setForm(org.apache.struts.action.ActionForm form)
Associates a new ActionForm with this ActionContext |
void |
validateForm()
Validates the action form and adds the error messages to the internal error collection |
Methods inherited from interface com.cc.framework.adapter.RequestContext |
getLocale, getNestedContext, getPrincipal |
Methods inherited from interface com.cc.framework.http.HttpContext |
getAttribute, getServletContext, request, response, session |
Methods inherited from interface com.cc.framework.adapter.AjaxRequest |
addMenu, cancelAjaxRequest, getAjaxAttribute, getAjaxAttributeNames, getDirtyControls, getMenus, isAjaxCanceled, isAjaxRequest, markDirty, setAjaxAttribute |
Method Detail |
public void invalidDialogContext(java.lang.String messageKey)
messageKey
- Message Keypublic org.apache.struts.action.ActionMapping mapping()
public org.apache.struts.action.ActionForm form()
public void setForm(org.apache.struts.action.ActionForm form)
form
- public void validateForm()
public boolean isHandeled()
public org.apache.struts.action.ActionForward getForward()
public void forward(org.apache.struts.action.ActionForward forward)
forward
- The forward to setpublic void forwardToResponse()
public void forwardToInput()
public void forwardToAction(java.lang.String actionName)
actionName
- Action namepublic void forwardToAction(java.lang.String actionName, boolean redirect)
actionName
- Action nameredirect
- when set to true
a redirect (HTTP 303) will be
sent to the browserpublic void forwardToAction(java.lang.String actionName, java.util.Map params)
actionName
- Action nameparams
- Additional Parameter map (key - value pairs)public void forwardToAction(java.lang.String actionName, java.util.Map params, boolean redirect)
actionName
- Action nameparams
- Additional Parameter map (key - value pairs)redirect
- when set to true
a redirect (HTTP 303) will be
sent to the browserpublic void forwardByName(java.lang.String forwardName)
forwardName
- Action namepublic void forwardByName(java.lang.String forwardName, java.lang.Object p1)
forwardName
- Action namep1
- Additional Parameterpublic void forwardByName(java.lang.String forwardName, java.lang.Object p1, java.lang.Object p2)
forwardName
- Action namep1
- Additional Parameterp2
- Additional Parameterpublic void forwardByName(java.lang.String forwardName, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
forwardName
- Action namep1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterpublic void forwardByName(java.lang.String forwardName, java.lang.Object[] params)
forwardName
- Action nameparams
- Object array with additional parameterpublic void consumeStrutsMessages()
public org.apache.struts.action.ActionMessages getErrors()
public void addErrors(org.apache.struts.action.ActionMessages errorList)
errorList
- ActionErrorspublic void addMessages(org.apache.struts.action.ActionMessages messageList)
messageList
- ActionMessagespublic void addError(java.lang.String key, java.lang.Throwable t)
key
- Keyt
- Throwablepublic void addGlobalError(java.lang.String key)
key
- Keypublic void addGlobalError(java.lang.String key, java.lang.Object p1)
key
- Keyp1
- Object1public void addGlobalError(java.lang.String key, java.lang.Object p1, java.lang.Object p2)
key
- Keyp1
- Object1p2
- Object2public void addGlobalError(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
key
- Keyp1
- Object1p2
- Object2p3
- Object3public void addGlobalError(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
key
- Keyp1
- Object1p2
- Object2p3
- Object3p4
- Object4public void addPropertyError(java.lang.String property, java.lang.String key)
property
- The propertykey
- The keypublic void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1)
property
- The propertykey
- The keyp1
- Additional Parameterpublic void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2)
property
- The propertykey
- The keyp1
- Additional Parameterp2
- Additional Parameterpublic void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
property
- The propertykey
- The keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterpublic void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
property
- The propertykey
- The resource keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterp4
- Additional Parameterpublic boolean hasErrors()
public org.apache.struts.action.ActionMessages getMessages()
public void addGlobalMessage(java.lang.String key)
key
- Message resource Keypublic void addGlobalMessage(java.lang.String key, java.lang.Object p1)
key
- Message resource Keyp1
- Additional Parameterpublic void addGlobalMessage(java.lang.String key, java.lang.Object p1, java.lang.Object p2)
key
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterpublic void addGlobalMessage(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
key
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterpublic void addGlobalMessage(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
key
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterp4
- Additional Parameterpublic void addPropertyMessage(java.lang.String property, java.lang.String key)
property
- The propertykey
- Message resource Keypublic void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1)
property
- The propertykey
- Message resource Keyp1
- Additional Parameterpublic void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2)
property
- The propertykey
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterpublic void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
property
- The propertykey
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterpublic void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
property
- The propertykey
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterp4
- Additional Parameterpublic boolean hasMessages()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |