File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Servlets Vs Java Bean

Pandurangan Rakesh

Joined: Jun 06, 2004
Posts: 24

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

Joined: Mar 22, 2000
Posts: 13036
Thats the silliest question I ever heard (well recently anyway) :roll:
at least 10! What are you doing, filling out a job application?
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.

Natarajan Shankar
Ranch Hand

Joined: Jun 10, 2004
Posts: 53
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

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

Joined: Jan 10, 2002
Posts: 63852

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Servlets Vs Java Bean
It's not a secret anymore!