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 what is difference between Servlet and  HTTPServlet package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 41182
    
  45
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 - my free Android networking tools app
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    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: 41182
    
  45
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
page vs pageContext
JAVA + FTP
what is the function of this line code?
stateful session bean -- any online tutorial?
difference between Jsp forward and sendRedirect