*
The moose likes Servlets and the fly likes JSP doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP doubt" Watch "JSP doubt" New topic
Author

JSP doubt

Lancy Mendonca
Ranch Hand

Joined: Aug 08, 2000
Posts: 54
Hi,
Over the past few weeks I have been trying to develop a shopping cart appl. using the MVC architecture and using Servlets, JSP and beans. My confusion stems from the fact when do I use normal Java classes and when do I use Java Beans.
For example I have written a Java Bean called Shopping Cart and used it in my JSP to display items in my cart using jsp:usebean. I could have achieved the same using a normal Java class called shopping cart and writing a scriplet in my JSP as follows:
ShoppingCart sc = new ShoppingCart();

Do let me know the pros and cons of the above two methods and when would I choose one over the other


Sun Certified Java Programmer<BR>Oracle Certified DBA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP doubt
 
Similar Threads
Tag Library and Struts Framework
can anyone help me to construct my on-line store
Is there a more elegant way to employ DWR ?
shopping cart for FBN
generics in servlets(sessions)