com.ibm.commerce.giftregistry.struts

Class GiftRegistryBaseAction

  • Direct Known Subclasses:
    GiftRegistryOrderProcessAction, GiftRegistryUpdateAction


    public class GiftRegistryBaseAction
    extends BaseAction
    This is the gift registry base action that provides commons functions shared by all the other concrete gift registry actions. This action provides the foundation for IBM Gift Center to delegate incoming request to the IBM Gift Center service commands. The action also processes the result after running the service commands.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String CLASS_NAME
      The name of this class
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String STRUTS_APP_SCOPE_REQUEST
      The name of the request scope used by a Struts action.
      static java.lang.String STRUTS_APP_SCOPE_SESSION
      The name of the session scope used by a Struts action
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      org.apache.struts.action.ActionForm getForm(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      Returns the ActionForm instance that is associated with the action being requested.
      • 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
      • STRUTS_APP_SCOPE_REQUEST

        public static final java.lang.String STRUTS_APP_SCOPE_REQUEST
        The name of the request scope used by a Struts action.
        See Also:
        Constant Field Values
      • STRUTS_APP_SCOPE_SESSION

        public static final java.lang.String STRUTS_APP_SCOPE_SESSION
        The name of the session scope used by a Struts action
        See Also:
        Constant Field Values
      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        The name of this class
    • Constructor Detail

      • GiftRegistryBaseAction

        public GiftRegistryBaseAction()
    • Method Detail

      • getForm

        public org.apache.struts.action.ActionForm getForm(org.apache.struts.action.ActionMapping mapping,
                                                           javax.servlet.http.HttpServletRequest request)
        Returns the ActionForm instance that is associated with the action being requested. By default the action form is retrieved first from request if there exists one in the request object. Otherwise it will be retrieved from the session in which the request is in. The lookup is based on the name of the action form, which is stored in the given action mapping. If the mapping is null or no name is found in the mapping, null will be returned. If none is found in either session or request, null will be returned.
        Parameters:
        mapping - that mapping that may stores the ActionForm for this action
        request - the object that represents the action's HTTP request
        Returns:
        the ActionForm instance that this action is mapped to. It will return Null when no such instance is found.