Results 1 to 2 of 2

Thread: Servlets

  1. #1
    Join Date
    Aug 2007
    Posts
    1
    Rep Power
    0

    Thumbs down Servlets

    Hi
    I am new member of this forum. I have one question ?

    What exactly meaning of GenericServlet ? Can we use any protocol with it or we can use without protocol ? Pls send me the answer


    Thanks in advance

  2. #2
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Default

    The GenericServlet is an abstract class. It provides implementation of methods described in servlet interface like init, destroy etc. It is not dependent on any protocol. The HttpServlet extends GenericServlet and adds http specific behavior to it.It provides wrapping to convert simple request and response to http specific request and response. Like wise GenericServlet can be extended by any other class to implement funactionalities specific to a protocol like FTP. We cannot directly use GenericServlet since it is abstract.

Similar Threads

  1. Java Servlets
    By kondalrao in forum Java Servlet
    Replies: 0
    Last Post: 04-14-2008, 11:12 AM
  2. 1 form 2 servlets
    By sandor in forum Java Servlet
    Replies: 2
    Last Post: 01-22-2008, 10:47 AM
  3. Deploying Servlets
    By gapper in forum New To Java
    Replies: 2
    Last Post: 01-17-2008, 12:43 PM
  4. servlets or jsp
    By krishnapal in forum Advanced Java
    Replies: 1
    Last Post: 12-13-2007, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •