Class ProductForm

java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.action.DynaActionForm
com.softslate.commerce.customer.core.BaseDynaForm
com.softslate.commerce.customer.product.ProductForm
All Implemented Interfaces:
Serializable, org.apache.commons.beanutils.DynaBean

public class ProductForm extends BaseDynaForm
Struts form class that correspondes to the product page. Used for requests to "/Product.do".

The validate method of this class simply makes sure that a product code of non-zero length was submitted.

Alternatively, if a request attribute named "errorProductCode" is set, this class will populate itself with the value of that variable. This is used in cases where an error occurs during cart processing and the failure action is to forward the error to the appropriate product screen.

Author:
David Tobey
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • log

      static org.apache.commons.logging.Log log
  • Constructor Details

    • ProductForm

      public ProductForm()
  • Method Details

    • 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