Class EstimatedShippingForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.order.EstimatedShippingForm
- All Implemented Interfaces:
Serializable
Struts form class representing the delivery information prompted for on the
cart page to calculated estimated shipping. It s used for submissions to
"/EstimatedShipping.do".
The validate method of this class first checks to see if the
user submitted values for the delivery postal code, state and country, which
are required to calculate shipping.
- Author:
- David Tobey
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate String(package private) static org.apache.commons.logging.Logprivate static final longFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDeliveryCity(String deliveryCity) voidsetDeliveryCountry(String deliveryCountry) voidsetDeliveryPostalCode(String deliveryPostalCode) voidsetDeliveryState(String deliveryState) org.apache.struts.action.ActionErrorsvalidate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) 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, setUserMethods 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 -
deliveryCity
-
deliveryState
-
deliveryPostalCode
-
deliveryCountry
-
-
Constructor Details
-
EstimatedShippingForm
public EstimatedShippingForm()
-
-
Method Details
-
getDeliveryCity
-
setDeliveryCity
-
getDeliveryState
-
setDeliveryState
-
getDeliveryPostalCode
-
setDeliveryPostalCode
-
getDeliveryCountry
-
setDeliveryCountry
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validatein classorg.apache.struts.action.ActionForm
-