Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

shopping cart

 
Pradeep Nair C
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am now working with a jsp project on online book shop.i want to store the books detail in my cart. which are the methods used?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically one would create a class to represent the "shopping cart" - an instance would be stored in a session so it could be used by both servlets and JSP.
You also have a class to represent catalog items.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic