This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to save data for an e-store  RSS feed

 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have an e-bookstore and i am trying to find out what is the best way to
save the customers products in his basket.Does anyone have any idea how this can be done??
It a few line it works like this..
When the customer clicks on the buy button a new jsp page opens.The ISBN of the product is passed by request.getParmeter.
Should i use a vector,a string ???
Any suggestionswill be very helpfull..

Thnx in advance!!
 
vu lee
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can store isbn as a String in the httpSession or stateless session bean.
 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any other idea without using session!!

Thnx
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the user is authenticated you can store the list of books in a backend system (db, flat file, whatever).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!