Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tranfer Servlet To JSP

 
Navtaj Singh
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
My query is :
I have a "ShoppingCart.class" Servlet file and wish to instantiate the
ShoppingCart in a "xxx.jsp" file.Is it possible and how?
Parvinder.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That design problem is a clear demonstration of why you should implement a "shopping cart" as a component such as a bean instead of cramming all the functions into a servlet.
Bill
 
Navtaj Singh
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok!
Now i have a relative problem.I have a "ShoppingCart.class" file in the "Classes" directory.But the "xxx.jsp" file is not able to locate the "ShoppingCart.class" file.
Please reply.
With Regards,
Navi.
 
Navtaj Singh
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahoy !
Please Answer !!
Navi
 
Navtaj Singh
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its okay , i have the answer.
Thanks
Navi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic