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
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
(package private) static org.apache.commons.logging.Log
private static final long
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDeliveryCity
(String deliveryCity) void
setDeliveryCountry
(String deliveryCountry) void
setDeliveryPostalCode
(String deliveryPostalCode) void
setDeliveryState
(String deliveryState) org.apache.struts.action.ActionErrors
validate
(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, 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 -
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:
validate
in classorg.apache.struts.action.ActionForm
-