com.softslate.commerce.customer.order
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:
- java.io.Serializable
public class CheckoutShippingForm
- extends BaseForm
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:
- Serialized Form
Field Summary |
private boolean |
isSubmitted
|
(package private) static org.apache.commons.logging.Log |
log
|
private static long |
serialVersionUID
|
private java.lang.String |
shippingOption
The shipping method selected by the user during checkout. |
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Methods inherited from class com.softslate.commerce.customer.core.BaseForm |
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
log
static org.apache.commons.logging.Log log
isSubmitted
private boolean isSubmitted
shippingOption
private java.lang.String shippingOption
- The shipping method selected by the user during checkout. For the
BasicShippingProcessor
,
this field corresponds to the code
property of the
sscShippingMethod
database table.
CheckoutShippingForm
public CheckoutShippingForm()
isSubmitted
public boolean isSubmitted()
setIsSubmitted
public void setIsSubmitted(boolean isSubmitted)
getShippingOption
public java.lang.String getShippingOption()
setShippingOption
public void setShippingOption(java.lang.String string)
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Overrides:
validate
in class org.apache.struts.action.ActionForm
validateShippingOption
public void validateShippingOption()
- Ensures a the
shippingOption
property has been set.
Copyright © SoftSlate, LLC 20032005