aspose file tools*
The moose likes Servlets and the fly likes Please help: what's the difference between Bean and Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Please help: what Watch "Please help: what New topic
Author

Please help: what's the difference between Bean and Servlet

JR AA
Greenhorn

Joined: Dec 08, 2003
Posts: 2
Hi
I am in process of learning Java!. And different people are giving different options of how to go about developing an application. Now I am stuck at Bean and Servlet usage.
Please let me know
1 What is the difference between a Servlet and a Bean.
2 In which condition, which is used?
3 what is the basic code structure for them.
Thanks
Amol Takate
Greenhorn

Joined: Sep 20, 2003
Posts: 15
If you want to learn java then "Mastering Java by John zukowaski" is a good book.
After having a basic funda clear , you can read "Core JSP and Servlet from Sun Press"
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
1 What is the difference between a Servlet and a Bean.
2 In which condition, which is used?
3 what is the basic code structure for them.

1) Servlet is class which is executed on server, when any request comes to server.
Bean is any class which has only get/set methods to access its private members.
2) I will suggest to read some good book on Servlet/Jsp.
3) read 2) again.
All the best.


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
 
 
subject: Please help: what's the difference between Bean and Servlet