Giampiero De Ciantis wrote:
Sorry, I didn't explain myself.

Basically the page that shows the cart contents will have an unknown number
(Cardinality 0..*) of items listed. Beside each item there will be a text
box where the user can input the quantity of the item that they want to
order. When the user hits checkout or updateQuantity I have to be able to
figure out what item they are updating.

So, How do I know which item they are trying to update once I get to the
CartAction that does the processing of the form?

The text box is a text input, right? It has a "name" attribute. Assign a meaningful name, such as "item1Quantity" or "item32Quantity", so that in your CartAction, you can then extract the HTTP parameters (using getParameter(String)) and you can perform whatever logic you need to perform now that you know (1) the name of the item and (2) the quantity set by the user.



Erik



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to