I am new to struts.I am developing a small application. In that i want to use displaytag to display items. I want to select few items and add to cart. Could any one please suggest me, how can i do that? is it possible?
Here we are passing the officeId when they select the check box and retrieving it in action class.
Joined: Oct 26, 2006
Hi sirish, From your reply i understood that we can do shoppingcart type application using display tag. But honestly i did not understand your code. Could you please send me a simple application which works like shopping cart .. to add items to cart. I just need how the add button works. Please
You're overestimating what DisplayTag can do. It is a tag library that can display tabular data (from data structures or the database) in a web page. You most certainly can not "do shoppingcart type application using display tag". You will need to use various Struts capabilities to do that.
It sounds as if you need a server session in which you can store the items of the shopping cart until checkout. What do you have so far?