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

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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • log

      static org.apache.commons.logging.Log log
    • isSubmitted

      private boolean isSubmitted
    • shippingOption

      private 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.
  • Constructor Details

    • CheckoutShippingForm

      public CheckoutShippingForm()
  • Method Details

    • isSubmitted

      public boolean isSubmitted()
    • setIsSubmitted

      public void setIsSubmitted(boolean isSubmitted)
    • getShippingOption

      public String getShippingOption()
    • setShippingOption

      public void setShippingOption(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.