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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Generic Servlet" Watch "Generic Servlet" New topic
Author

Generic Servlet

mohamed zafer
Ranch Hand

Joined: Nov 03, 2000
Posts: 62
Hello Friends,
I have used HTTPServlet, and I want to know the use of Generic servlets.
I have the following Questions.
Under what circumtances are Generic servlet used and How are they used.
Can Generic Servlet be used instead of HTTPServlet.
Any example code will be of great help to me.
Zafer
Ajan Balakrishnan
Ranch Hand

Joined: Jan 04, 2001
Posts: 71
Hope these post helps http://www.javaranch.com/ubb/Forum7/HTML/000307.html
http://www.javaranch.com/ubb/Forum7/HTML/000578.html
http://www.javaranch.com/ubb/Forum7/HTML/000583.html http://www.javaranch.com/ubb/Forum7/HTML/001217.html

Ajan
[This message has been edited by Ajan Balakrishnan (edited February 12, 2001).]
mohamed zafer
Ranch Hand

Joined: Nov 03, 2000
Posts: 62
Hai Ajan,
Thank you for your response. The links provided by give only the definition of the Generic servlet, but it would be better if you help me know how to use it. Consider suppose I am not using HTTP but I do want to use servlet, in that case how can I extend Generic Servlet.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

I dont think GenericServlet is implemented much. It is much more common to use sockets for non-http connection.
This is what the API says although I realize it is little help:
To write a generic servlet, you need only override the abstract service method.

SCJP
Visit my download page
Ranjit NATARAJAN
Greenhorn

Joined: Jan 05, 2001
Posts: 7
http servlet mainly deals with http protocol implementation and hence when u r using http use this one
generic is for all protocols it does not have specific methods for http like doGet() and doPost() doHead() etc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generic Servlet