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 can i override the service()? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "can i override the service()?" Watch "can i override the service()?" New topic
Author

can i override the service()?

ajay verma
Ranch Hand

Joined: Dec 10, 2007
Posts: 37
what is the use of overriding service() in servlet?
what all methods you can override in place of service() method?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You can override it but you shouldn't do so unless you have a real good reason.

As for your second question, see my reply to you other post:
http://www.coderanch.com/t/365324/Servlets/java/relations-among-config-context-request
It applies here as well.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
Overriding the service method is discussed in more detail in the http://faq.javaranch.com/java/ServletsFaq#9


Ping & DNS - my free Android networking tools app
 
 
subject: can i override the service()?