• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is difference between Servlet and HTTPServlet package

 
vijay joseph
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,what is difference between GenericServlet and HTTPServlet class?

[ March 02, 2007: Message edited by: vijay joseph ]
[ March 02, 2007: Message edited by: vijay joseph ]
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither of those are packages. "javax.servlet.http" is a package name, and all classes inside of it make up a package.

"Servlet" is an interface, and "HttpServlet" is a class that implements that interface with the help of the GenericServlet class, which it extends.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you mean the difference between a GenericServlet and a HttpServlet ?
 
vijay joseph
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry friends mistake in my ? .i mean to say difference between HTTPServlet and GenericServlet?thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadocs of HttpServlet and GenericServlet explicitly mention the differences between the two classes, and they also show a bunch of methods in HttpServlet that are not in GenericServlet (specifically, all the HTTP-related stuff).

The javadocs are generally a good place to start if you want to learn about a particular class.
[ March 02, 2007: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic