Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP vs Servlet  RSS feed

 
donnamdean
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working on a retail web site with both Servlets and JSPs. Is it best to handle to handle the shoppoing cart iteration within the JSP (and then be able to include the cart.jsp in all other pages) or is it more efficient to do all the coding ina servlet?
 
Para Quack
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find the shopping cart to be a daunting task. I think that a servlet would be easier, at least for me
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi paraquack & donnamdean,
We have a naming policy here at JavaRanch where all publicly displayed names take the form, "Firstname Lastname". Could you please change yours to bring it into line?
Thanks in advance and we hope that you enjoy your stay at the JavaRanch!

ersin
* try to keep your business logic out of your JSPs
 
Senita Manigo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's best to handle the shoppoing cart iteration within the JSP (and then be able to include the cart.jsp in all other pages).
 
Naveen Sydney
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the only logic ur jsp should have is how to render out html. if i were u i would write a custom tag to do the job.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!