public class BaseAction
extends org.apache.struts.action.Action
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
BaseAction()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map | convertFormDataToMap(javax.servlet.http.HttpServletRequest req, org.apache.struts.action.ActionForm form)
This method converts a given action form to a map.
|
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)
This method performs the controller logic for a given request.
|
protected java.util.Map | getDefaultRequestParameters(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping, java.lang.Integer storeId)
This method gets the default request parameters.
|
protected java.util.Map | getRequestParameters(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping, java.lang.Integer storeId)
This method gets the input request parameters.
|
protected java.util.Map | invokeService(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, java.util.Map inMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
This method invokes a service to execute a given request.
|
protected boolean | isValidationEnabled()
This method returns whether the validate method of the given action form should be called during the preprocess method.
|
protected java.util.Map | postProcess(com.ibm.commerce.webcontroller.RequestHandle handle, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, java.util.Map rsp, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
This method performs postprocessing for the action (for example, double-click processing).
|
protected TypedProperty | preProcess(com.ibm.commerce.webcontroller.RequestHandle handle, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, java.util.Map requestParameters, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String viewName)
This method performs preprocessing for the action (for example, double-click processing).
|
protected org.apache.struts.action.ActionForm | updateFormProperties(org.apache.struts.action.ActionForm form, java.util.Map oMap)
This method updates a given input form with response data obtained by executing this action.
|
public static final java.lang.String COPYRIGHT
public BaseAction()
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 java.lang.Exception
protected java.util.Map getDefaultRequestParameters(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionMapping mapping, java.lang.Integer storeId)
protected java.util.Map getRequestParameters(javax.servlet.http.HttpServletRequest request, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping, java.lang.Integer storeId)
protected org.apache.struts.action.ActionForm updateFormProperties(org.apache.struts.action.ActionForm form, java.util.Map oMap)
This method updates a given input form with response data obtained by executing this action.
Note: The default implementation can only handle a dynamic action form. Actions that use other types of forms will need to override this method (if action execution does affect those types of forms).
protected java.util.Map convertFormDataToMap(javax.servlet.http.HttpServletRequest req, org.apache.struts.action.ActionForm form) throws java.lang.Exception
protected TypedProperty preProcess(com.ibm.commerce.webcontroller.RequestHandle handle, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, java.util.Map requestParameters, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String viewName) throws com.ibm.commerce.webcontroller.exception.RequestException
protected java.util.Map postProcess(com.ibm.commerce.webcontroller.RequestHandle handle, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, java.util.Map rsp, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws com.ibm.commerce.webcontroller.exception.RequestException
protected java.util.Map invokeService(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, java.util.Map inMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws com.ibm.commerce.webcontroller.exception.RequestException
protected boolean isValidationEnabled()