public class GiftRegistryBaseAction extends BaseAction
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
|
Constructor and Description |
---|
GiftRegistryBaseAction() |
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. |
execute
public static final java.lang.String COPYRIGHT
public static final java.lang.String STRUTS_APP_SCOPE_REQUEST
public static final java.lang.String STRUTS_APP_SCOPE_SESSION
public static final java.lang.String CLASS_NAME
public org.apache.struts.action.ActionForm getForm(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
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.mapping
- that mapping that may stores the ActionForm for this actionrequest
- the object that represents the action's HTTP requestActionForm
instance that this action is mapped to. It will return Null when no such instance
is found.