• Post Reply Bookmark Topic Watch Topic
  • New Topic

what happens if we override service() in our servlet?  RSS feed

 
Damodara Reddy
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what happens if we override service method in our servlet which extends HttpServlet...?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your service method will be called instead of the the method implemented in the superclass.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... which means that your service method had better do everything the default method does, or there could be trouble.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!