File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlets Vs Java Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets Vs Java Bean" Watch "Servlets Vs Java Bean" New topic
Author

Servlets Vs Java Bean

Pandurangan Rakesh
Greenhorn

Joined: Jun 06, 2004
Posts: 24
Hi

I want to know the major and minor differences (atleast 10) between servlets and java bean.

Thank You
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12821
    
    5
Thats the silliest question I ever heard (well recently anyway) :roll:
at least 10! What are you doing, filling out a job application?
Bill
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
you can't grind servlets into ground Java
you can't run beans into the ground

that would cover the major differences.


42
Natarajan Shankar
Ranch Hand

Joined: Jun 10, 2004
Posts: 53
Rakesh,
One of main difference is

Java Beans will be used in modelling your data (like carrying data from databsae to your view). -- Mainly act as transport agent from one component to another.

While servlet control your request from your view - Mainly act as controller.


Best Regards<br />N.Shankar<br />SCJP, SCWCD
Pandurangan Rakesh
Greenhorn

Joined: Jun 06, 2004
Posts: 24
Thank you Natarajan..

Thank You Mr.Brogden...this is the silliest reply i have ever heard for a question asked here..this is the question which i was asked in an interview!
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by Pandurangan Rakesh:
this is the question which i was asked in an interview!

Then the interviewer doesn't know enough to be conducting technical interviews. I agree with Bill, this question is just absurd (especially the at least 10 part).
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

Got to agree. Either the interviewer was completely clueless, or was trying to find out if you were. It's like asking to list 10 ways an exhaust manifold is different from a carburator. Both go into the same engine, but it makes no sense to compare them.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets Vs Java Bean