Class CheckoutShippingForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.order.CheckoutShippingForm
- All Implemented Interfaces:
Serializable
Struts form class for submissions to record a selected shipping option during
checkout. Used for requests to "/CheckoutShipping.do".
The validate
method of this class checks to make sure a
shipping option was selected, if the "shippingRequired" setting is set for
the store.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
(package private) static org.apache.commons.logging.Log
private static final long
private String
The shipping method selected by the user during checkout.Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setIsSubmitted
(boolean isSubmitted) void
setShippingOption
(String string) org.apache.struts.action.ActionErrors
validate
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) void
Ensures a theshippingOption
property has been set.Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, html5OrXhtml, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
isSubmitted
private boolean isSubmitted -
shippingOption
The shipping method selected by the user during checkout. For theBasicShippingProcessor
, this field corresponds to thecode
property of thesscShippingMethod
database table.
-
-
Constructor Details
-
CheckoutShippingForm
public CheckoutShippingForm()
-
-
Method Details
-
isSubmitted
public boolean isSubmitted() -
setIsSubmitted
public void setIsSubmitted(boolean isSubmitted) -
getShippingOption
-
setShippingOption
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validate
in classorg.apache.struts.action.ActionForm
-
validateShippingOption
public void validateShippingOption()Ensures a theshippingOption
property has been set.
-