I have a shopping I have /do/cart and /do/checkout which relate to a
shopping cart and I hope that it is obvious what they do. This is a special
shopping cart in that there are different types of products that can be
purchased and for accounting reasons they cannot be mixed, so only products
that belong to the same "family" can be purchased together and in one case
this one product cannot be purchased with others.
So what I did Is this: I have /do/eventRegistration which wraps around the
above actions that way my cart is setup in there and handed to /do/cart with
isEventCart() set to true and there are appropriate actions to be taken
etc...
In all cases I do a return mapping.findForward("cart"); //global mapping
cart == /do/cart checkout == /do/checkout
BUT, in one case I do not return the mapping but I just call it and I want
to find out if it had saved any ActionErrors. How do I check for that?
so I would have this for example:
public ActionForward purchase(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
mapping.findForward("checkout");
/* if( checkout saved ActionErrors )
then set errors and return to the view checkout page
else
return mapping.findForward("checkoutSuccess");
*/
}
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]