com.ibm.commerce.struts

Class BaseAction

  • java.lang.Object
    • org.apache.struts.action.Action
      • com.ibm.commerce.struts.BaseAction
  • Direct Known Subclasses:
    ComponentServiceAction, GiftRegistryBaseAction


    public class BaseAction
    extends org.apache.struts.action.Action
    This is a generic action class that can be used to invoke WebSphere Commerce controller commands.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      BaseAction()
      This is the default constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      • Methods inherited from class org.apache.struts.action.Action

        execute, getServlet, setServlet
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BaseAction

        public BaseAction()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • 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 java.lang.Exception
        This method performs the controller logic for a given request.
        Overrides:
        execute in class org.apache.struts.action.Action
        Parameters:
        mapping - The ActionMapping for this action and request.
        form - The ActionForm bean for this request.
        request - The HTTP servlet request being processed.
        response - The HTTP response being created.
        Returns:
        The ActionForward instance describing where and how control should be forwarded.
        Throws:
        java.lang.Exception - Thrown by any error that occurs during the processing of the request. The exception is thrown so the web container runtime can handle it and report a response back the user who initiated the request.