com.softslate.commerce.customer.product
Class ProductForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.apache.struts.action.DynaActionForm
          extended by com.softslate.commerce.customer.core.BaseDynaForm
              extended by com.softslate.commerce.customer.product.ProductForm
All Implemented Interfaces:
java.io.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:
ProductAction, Serialized Form

Field Summary
(package private) static org.apache.commons.logging.Log log
           
private static long serialVersionUID
           
 
Fields inherited from class org.apache.struts.action.DynaActionForm
dynaClass, dynaValues
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ProductForm()
           
 
Method Summary
 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.BaseDynaForm
getBusinessObjectFactory, getErrors, getFormUtils, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
 
Methods inherited from class org.apache.struts.action.DynaActionForm
contains, get, get, get, getDynaClass, getDynaProperty, getMap, getString, getStrings, initialize, initialize, isDynaAssignable, remove, reset, reset, set, set, set, toString
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log
Constructor Detail

ProductForm

public ProductForm()
Method Detail

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


Copyright © SoftSlate, LLC 2003–2005