Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

merit n demerit of overriding service method

 
gagan narula
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one please tell me
advantage and disadvantaged of overriding a service method in servlet
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseRealWords


Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.
-Ben
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
De-merit : You have to find the request explicitly whether it is get or post and call in your overridden service method.
Merit : Container will find the request and call automatically. You do not need to analyse the request.

bye for now
sat
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by satishkumar janakiraman:
De-merit : You have to find the request explicitly whether it is get or post and call in your overridden service method.


Whenever you need to do the same service for all requests irrespective of the HTTP command (GET , POST) used , in those situations you might override the delegation code that is there in the service method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic