• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i override the service()?

 
ajay verma
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of overriding service() in servlet?
what all methods you can override in place of service() method?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Overriding the service method is discussed in more detail in the http://faq.javaranch.com/java/ServletsFaq#9
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic