public class BaseAction
extends org.apache.struts.action.Action
Action subclass that provides convenience methods for recognizing form submission types (cancel,
reset, ok, etc) and deciding where to return after the action has completed.| Modifier and Type | Field and Description |
|---|---|
static boolean |
NO_RETURN_PATH |
static boolean |
YES_RETURN_PATH |
| Constructor and Description |
|---|
BaseAction() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.struts.action.ActionForward |
checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form) |
org.apache.struts.action.ActionForward |
checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
boolean doReturnPath) |
org.apache.struts.action.ActionForward |
checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
Map params) |
org.apache.struts.action.ActionForward |
checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
Map params,
boolean doReturnPath)
Return an
ActionForward if the form has been cancelled or reset; otherwise return null
so that the subclass can continue to execute. |
org.apache.struts.action.ActionForward |
checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
String param,
Object value) |
org.apache.struts.action.ActionForward |
checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
String param,
Object value,
boolean doReturnPath) |
protected org.apache.struts.action.ActionForward |
constructForward(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String forwardName) |
protected org.apache.struts.action.ActionForward |
constructForward(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String forwardName,
boolean doReturnPath) |
protected org.apache.struts.action.ActionForward |
constructForward(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String forwardName,
Map params,
boolean doReturnPath)
Return an
ActionForward corresponding to the given form gesture or action state. |
protected org.apache.struts.action.ActionForward |
constructForward(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String forwardName,
String param,
Object value,
boolean doReturnPath) |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dosen't do a damn thing.
|
org.apache.struts.action.ActionForward |
returnAdd(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnAdd(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
Return an
ActionForward representing the add form gesture, setting the return path to the
current URL. |
org.apache.struts.action.ActionForward |
returnAdd(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params) |
org.apache.struts.action.ActionForward |
returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
Return an
ActionForward representing the cancel form gesture. |
org.apache.struts.action.ActionForward |
returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
boolean doReturnPath) |
org.apache.struts.action.ActionForward |
returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params) |
org.apache.struts.action.ActionForward |
returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
Return an
ActionForward representing the failure action state. |
org.apache.struts.action.ActionForward |
returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnInstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnInstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
Return an
ActionForward representing the install form gesture, setting the return path to
the current URL. |
org.apache.struts.action.ActionForward |
returnInstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnManualUninstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnManualUninstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
Return an
ActionForward representing the install form gesture, setting the return path to
the current URL. |
org.apache.struts.action.ActionForward |
returnManualUninstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
Return an
ActionForward representing the new form gesture, setting the return path to the
current URL. |
org.apache.struts.action.ActionForward |
returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
Return an
ActionForward representing the success action state. |
org.apache.struts.action.ActionForward |
returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value,
boolean doReturnPath) |
org.apache.struts.action.ActionForward |
returnOkAssign(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
Return an
ActionForward representing the okassign action state. |
org.apache.struts.action.ActionForward |
returnOkAssign(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
Return an
ActionForward representing the okassign action state. |
org.apache.struts.action.ActionForward |
returnRemove(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnRemove(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
Return an
ActionForward representing the remove form gesture, setting the return path to the
current URL. |
org.apache.struts.action.ActionForward |
returnRemove(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params) |
org.apache.struts.action.ActionForward |
returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
Return an
ActionForward representing the reset form gesture. |
org.apache.struts.action.ActionForward |
returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping) |
org.apache.struts.action.ActionForward |
returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params) |
org.apache.struts.action.ActionForward |
returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
Return an
ActionForward representing the success action state. |
org.apache.struts.action.ActionForward |
returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value) |
org.apache.struts.action.ActionForward |
returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value,
boolean doReturnPath) |
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic static final boolean YES_RETURN_PATH
public static final boolean NO_RETURN_PATH
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
execute in class org.apache.struts.action.ActionExceptionpublic org.apache.struts.action.ActionForward checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
Map params,
boolean doReturnPath)
throws Exception
ActionForward if the form has been cancelled or reset; otherwise return null
so that the subclass can continue to execute.Exceptionpublic org.apache.struts.action.ActionForward checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
Map params)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
boolean doReturnPath)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
String param,
Object value,
boolean doReturnPath)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward checkSubmit(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnAdd(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
ActionForward representing the add form gesture, setting the return path to the
current URL.Exceptionpublic org.apache.struts.action.ActionForward returnAdd(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnAdd(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
throws Exception
ActionForward representing the cancel form gesture.Exceptionpublic org.apache.struts.action.ActionForward returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnCancelled(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
throws Exception
ActionForward representing the failure action state.Exceptionpublic org.apache.struts.action.ActionForward returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
boolean doReturnPath)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnFailure(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
ActionForward representing the new form gesture, setting the return path to the
current URL.Exceptionpublic org.apache.struts.action.ActionForward returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
throws Exception
ActionForward representing the success action state.Exceptionpublic org.apache.struts.action.ActionForward returnNew(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value,
boolean doReturnPath)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnRemove(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
ActionForward representing the remove form gesture, setting the return path to the
current URL.Exceptionpublic org.apache.struts.action.ActionForward returnRemove(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnRemove(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnInstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
ActionForward representing the install form gesture, setting the return path to
the current URL.Exceptionpublic org.apache.struts.action.ActionForward returnInstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnInstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnManualUninstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
ActionForward representing the install form gesture, setting the return path to
the current URL.Exceptionpublic org.apache.struts.action.ActionForward returnManualUninstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnManualUninstall(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
throws Exception
ActionForward representing the reset form gesture.Exceptionpublic org.apache.struts.action.ActionForward returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnReset(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnOkAssign(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
ActionForward representing the okassign action state.Exceptionpublic org.apache.struts.action.ActionForward returnOkAssign(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
throws Exception
ActionForward representing the okassign action state.Exceptionpublic org.apache.struts.action.ActionForward returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params,
boolean doReturnPath)
throws Exception
ActionForward representing the success action state.Exceptionpublic org.apache.struts.action.ActionForward returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
Map params)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value,
boolean doReturnPath)
throws Exception
Exceptionpublic org.apache.struts.action.ActionForward returnSuccess(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String param,
Object value)
throws Exception
Exceptionprotected org.apache.struts.action.ActionForward constructForward(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String forwardName,
Map params,
boolean doReturnPath)
throws Exception
ActionForward corresponding to the given form gesture or action state. Utilize the session
return path if it is set. Optionally set a request parameter to the path.Exceptionprotected org.apache.struts.action.ActionForward constructForward(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String forwardName,
String param,
Object value,
boolean doReturnPath)
throws Exception
Exceptionprotected org.apache.struts.action.ActionForward constructForward(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping,
String forwardName,
boolean doReturnPath)
throws Exception
ExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.