Class CartItemEditFormForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.order.CartItemEditFormForm
- All Implemented Interfaces:
Serializable
Struts form class for requests for the cart item edit form for a given cart
item. Used for requests to "/CartItemEditForm.do".
The validate
method of this class checks the
orderItemID
property to make sure it exists. It also checks to
make sure user's session has not expired, and that the given order item is in
the user's cart. In doing this, it also populates the orderItem
property with the
OrderItem
instance being
edited.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(package private) static org.apache.commons.logging.Log
private OrderItem
private String
private static final long
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setOrderItem
(OrderItem orderItem) void
setOrderItemID
(String orderItemID) 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.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, html5OrXhtml, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
orderItemID
-
orderItem
-
-
Constructor Details
-
CartItemEditFormForm
public CartItemEditFormForm()
-
-
Method Details
-
getOrderItem
-
setOrderItem
-
getOrderItemID
-
setOrderItemID
-
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
-