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
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 Summary
Modifier and TypeFieldDescription(package private) static org.apache.commons.logging.Log
private static final long
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
Modifier and TypeMethodDescriptionorg.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, html5OrXhtml, 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
-
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 classorg.apache.struts.action.ActionForm
-