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 Calling the service() method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Calling the service() method" Watch "Calling the service() method" New topic
Author

Calling the service() method

Shini Akshi
Greenhorn

Joined: Oct 21, 2007
Posts: 11
Hi,
Can somebody help me on this.
Considering the life cycle of Servlet,if init() is not overridden , init() of GenericServlet is called.Then the service() of HttpServlet class is called. service() is available in the GenericServlet also. Could you please describe me the reason for calling service() of HttpServlet class rather than calling service() of GenericServlet.

thanks
Shini
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

service() of GenericServlet is abstract - it doesn't actually exist. HttpServlet extends GenericServlet and implements the service() method.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Calling the service() method
 
Similar Threads
HFSJ 2 ed. Final mock exam 43 question
init() and init(ServletConfig) doubt?
why HttpServlet class is abstract
Basic Servlet Doubt
what code will be there in init() of GenericServlet