Class ProductForm

  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:, org.apache.commons.beanutils.DynaBean

public class ProductForm
extends BaseDynaForm

Struts form class that correspondes to the product page. Used for requests to "/".

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.

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
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


private static final long serialVersionUID
See Also:
Constant Field Values


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


public ProductForm()
Method Detail


public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
validate in class org.apache.struts.action.ActionForm

Copyright © SoftSlate, LLC 2003–2005