Package nl.b3p.commons.struts
Class CrudAction
- java.lang.Object
-
- org.apache.struts.action.Action
-
- org.apache.struts.actions.DispatchAction
-
public class CrudAction extends ExtendedMethodAction
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ALTERNATE_FORWARDFIELD
protected static String
CANCEL
protected static String
CONFIRM
protected static String
CREATE
protected static String
DEFAULT_FORWARDFIELD
protected static String
DELETE
protected static String
DELETE_CONFIRM
protected static String
EDIT
protected static String
FAILURE
protected static String
GENERAL_ERROR_KEY
protected static String
LIST
protected static String
LISTFW
protected static String
NOTFOUND_ERROR_KEY
protected static String
SAVE
protected static String
SAVE_CONFIRM
protected static String
SUCCESS
protected static String
TOKEN_ERROR_KEY
protected static String
VALIDATION_ERROR_KEY
-
Fields inherited from class nl.b3p.commons.struts.UrlPathDispatchAction
parameterMethodMap
-
Fields inherited from class nl.b3p.commons.struts.DynaFormDispatchAction
types
-
-
Constructor Summary
Constructors Constructor Description CrudAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.struts.action.ActionForward
cancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.apache.struts.action.ActionForward
cancelled(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.apache.struts.action.ActionForward
confirm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.apache.struts.action.ActionForward
create(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
createLists(org.apache.struts.validator.DynaValidatorForm form, javax.servlet.http.HttpServletRequest request)
org.apache.struts.action.ActionForward
delete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.apache.struts.action.ActionForward
deleteConfirm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.apache.struts.action.ActionForward
edit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
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)
protected String
getAction(org.apache.struts.validator.DynaValidatorForm dynaForm)
protected Map
getActionMethodPropertiesMap()
protected String
getAltAction(org.apache.struts.validator.DynaValidatorForm dynaForm)
protected org.apache.struts.action.ActionForward
getUnspecifiedDefaultForward(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
org.apache.struts.action.ActionForward
list(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
prepareMethod(org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, String def, String alt)
org.apache.struts.action.ActionForward
save(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.apache.struts.action.ActionForward
saveConfirm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.apache.struts.action.ActionForward
unspecified(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class nl.b3p.commons.struts.ExtendedMethodAction
addAlternateMessage, addAlternateMessage, addDefaultMessage, addDefaultMessage, getActionMethodPropertiesClass, getAlternateForward, getDefaultForward, getUnspecifiedAlternateForward, redispatch, redispatchFormField
-
Methods inherited from class nl.b3p.commons.struts.MethodPropertiesAction
addAttributeMessage, addAttributeMessage, addMessage, addMessage, addMessage, addMessage, addMessage, getMethodProperties, getParameterMethodMap
-
Methods inherited from class nl.b3p.commons.struts.ParameterLookupDispatchAction
getMethodParameter
-
Methods inherited from class nl.b3p.commons.struts.UrlPathDispatchAction
getDispatchedMethodName, getDispatchedParameter, getMethodPathIndex, parseParameter, setDispatchMethod
-
Methods inherited from class nl.b3p.commons.struts.DynaFormDispatchAction
cancelled, getMethod, unspecified
-
Methods inherited from class org.apache.struts.actions.DispatchAction
dispatchMethod, getMethodName, getParameter
-
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
-
-
-
Field Detail
-
GENERAL_ERROR_KEY
protected static final String GENERAL_ERROR_KEY
- See Also:
- Constant Field Values
-
TOKEN_ERROR_KEY
protected static final String TOKEN_ERROR_KEY
- See Also:
- Constant Field Values
-
NOTFOUND_ERROR_KEY
protected static final String NOTFOUND_ERROR_KEY
- See Also:
- Constant Field Values
-
VALIDATION_ERROR_KEY
protected static final String VALIDATION_ERROR_KEY
- See Also:
- Constant Field Values
-
SUCCESS
protected static final String SUCCESS
- See Also:
- Constant Field Values
-
FAILURE
protected static final String FAILURE
- See Also:
- Constant Field Values
-
LISTFW
protected static final String LISTFW
- See Also:
- Constant Field Values
-
DEFAULT_FORWARDFIELD
protected static final String DEFAULT_FORWARDFIELD
- See Also:
- Constant Field Values
-
ALTERNATE_FORWARDFIELD
protected static final String ALTERNATE_FORWARDFIELD
- See Also:
- Constant Field Values
-
CONFIRM
protected static final String CONFIRM
- See Also:
- Constant Field Values
-
DELETE_CONFIRM
protected static final String DELETE_CONFIRM
- See Also:
- Constant Field Values
-
SAVE_CONFIRM
protected static final String SAVE_CONFIRM
- See Also:
- Constant Field Values
-
DELETE
protected static final String DELETE
- See Also:
- Constant Field Values
-
CREATE
protected static final String CREATE
- See Also:
- Constant Field Values
-
SAVE
protected static final String SAVE
- See Also:
- Constant Field Values
-
EDIT
protected static final String EDIT
- See Also:
- Constant Field Values
-
CANCEL
protected static final String CANCEL
- See Also:
- Constant Field Values
-
LIST
protected static final String LIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionMethodPropertiesMap
protected Map getActionMethodPropertiesMap()
- Specified by:
getActionMethodPropertiesMap
in classMethodPropertiesAction
-
createLists
protected void createLists(org.apache.struts.validator.DynaValidatorForm form, javax.servlet.http.HttpServletRequest request) throws Exception
- Throws:
Exception
-
getUnspecifiedDefaultForward
protected org.apache.struts.action.ActionForward getUnspecifiedDefaultForward(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
- Specified by:
getUnspecifiedDefaultForward
in classExtendedMethodAction
-
prepareMethod
protected void prepareMethod(org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, String def, String alt) throws Exception
- Throws:
Exception
-
unspecified
public org.apache.struts.action.ActionForward unspecified(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
cancel
public org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
deleteConfirm
public org.apache.struts.action.ActionForward deleteConfirm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
saveConfirm
public org.apache.struts.action.ActionForward saveConfirm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
edit
public org.apache.struts.action.ActionForward edit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
list
public org.apache.struts.action.ActionForward list(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
save
public org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
delete
public org.apache.struts.action.ActionForward delete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
create
public org.apache.struts.action.ActionForward create(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
confirm
public org.apache.struts.action.ActionForward confirm(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
cancelled
public org.apache.struts.action.ActionForward cancelled(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
getAction
protected String getAction(org.apache.struts.validator.DynaValidatorForm dynaForm) throws Exception
- Throws:
Exception
-
getAltAction
protected String getAltAction(org.apache.struts.validator.DynaValidatorForm dynaForm) throws Exception
- Throws:
Exception
-
execute
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
- Overrides:
execute
in classParameterLookupDispatchAction
- Throws:
Exception
-
-