This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes difference between GenericServlet and HttpServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "difference between GenericServlet and HttpServlet" Watch "difference between GenericServlet and HttpServlet" New topic

difference between GenericServlet and HttpServlet


Joined: Mar 03, 2006
Posts: 3
difference between GenericServlet and HttpServlet
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

"registration hi",

You've already been warned to change your display name to adhere to JavaRanch standards.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be advised that accounts with invalid display names are removed.

JavaRanch Sheriff
[ March 06, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
David O'Meara

Joined: Mar 06, 2001
Posts: 13459


Thanks for changing your display name, but it is still not valid. Please read Bear's request more closely.

This is your final warning

chandroo shekoo

Joined: Mar 02, 2006
Posts: 2

First of all, Both Generic Servlet and HttpServlet are abstract.

GenericServlet has service() for servicing client requests but in HttpServlet we have Http methods like post and get to service the clients.

GenericServlet is used for generic protocols and HttpServlet is used specially for Http Protocols.

Don't get me started about those stupid light bulbs.
subject: difference between GenericServlet and HttpServlet
It's not a secret anymore!