Forums Register Login

merit n demerit of overriding service method

+Pie Number of slices to send: Send
can any one please tell me
advantage and disadvantaged of overriding a service method in servlet
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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.
What? What, what, what? What what tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 750 times.
Similar Threads
can i override the service()?
sendRedirect method of HttpServiceResponse
Why only doGet() or doPost() & not service
service ( ) method overriding or overloading?
regarding servlet service method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:11:16.