Here, when we click on the Add To Cart link, I'm calling an action and adding the item to the cart (session), here I can get the ProductNumber and price as parameters (because they are from collection object. but how can I get the quantity parameter (it is dynamic values added by user). I'm not getting how to grab that value into my action class.
You're basically implementing a form without an actual form? (Why *aren't* you using a form--it'd make your requirement substantially easier.) Also, if you're not in a form, using the <html:text...> tag is probably a Bad Idea, as it expects an ActionForm to be in scope.
If you're dead-set on doing things this way I'd probably recommend implementing a link "onclick" handler that takes the link as it is, adds the quantity, and return true so the link will be followed.
Joined: Mar 19, 2008