aspose file tools*
The moose likes Servlets and the fly likes what is difference between Servlet and  HTTPServlet package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what is difference between Servlet and  HTTPServlet package" Watch "what is difference between Servlet and  HTTPServlet package" New topic
Author

what is difference between Servlet and HTTPServlet package

vijay joseph
Greenhorn

Joined: Feb 26, 2007
Posts: 18
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
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

Did you mean the difference between a GenericServlet and a HttpServlet ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
vijay joseph
Greenhorn

Joined: Feb 26, 2007
Posts: 18
sorry friends mistake in my ? .i mean to say difference between HTTPServlet and GenericServlet?thanks in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is difference between Servlet and HTTPServlet package
 
Similar Threads
stateful session bean -- any online tutorial?
JAVA + FTP
what is the function of this line code?
difference between Jsp forward and sendRedirect
page vs pageContext