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 StringALTERNATE_FORWARDFIELDprotected static StringCANCELprotected static StringCONFIRMprotected static StringCREATEprotected static StringDEFAULT_FORWARDFIELDprotected static StringDELETEprotected static StringDELETE_CONFIRMprotected static StringEDITprotected static StringFAILUREprotected static StringGENERAL_ERROR_KEYprotected static StringLISTprotected static StringLISTFWprotected static StringNOTFOUND_ERROR_KEYprotected static StringSAVEprotected static StringSAVE_CONFIRMprotected static StringSUCCESSprotected static StringTOKEN_ERROR_KEYprotected static StringVALIDATION_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.ActionForwardcancel(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.ActionForwardcancelled(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.ActionForwardconfirm(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.ActionForwardcreate(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected voidcreateLists(org.apache.struts.validator.DynaValidatorForm form, javax.servlet.http.HttpServletRequest request)org.apache.struts.action.ActionForwarddelete(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.ActionForwarddeleteConfirm(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.ActionForwardedit(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.ActionForwardexecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected StringgetAction(org.apache.struts.validator.DynaValidatorForm dynaForm)protected MapgetActionMethodPropertiesMap()protected StringgetAltAction(org.apache.struts.validator.DynaValidatorForm dynaForm)protected org.apache.struts.action.ActionForwardgetUnspecifiedDefaultForward(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)org.apache.struts.action.ActionForwardlist(org.apache.struts.action.ActionMapping mapping, org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected voidprepareMethod(org.apache.struts.validator.DynaValidatorForm dynaForm, javax.servlet.http.HttpServletRequest request, String def, String alt)org.apache.struts.action.ActionForwardsave(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.ActionForwardsaveConfirm(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.ActionForwardunspecified(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:
getActionMethodPropertiesMapin 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:
getUnspecifiedDefaultForwardin 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:
executein classParameterLookupDispatchAction- Throws:
Exception
-
-