Forums Register Login

override service method

+Pie Number of slices to send: Send
I am new to the servlet. I see in the Servlet code mentioned (in another topic), service method is overriden instead of overriding doGet or doPost. can we do this? if we can override, which HTTP method we should use in jsp?
+Pie Number of slices to send: Send
 

Paul Clapham wrote:That's a bad practice. You should override doGet if your HTML code uses the GET method to request the servlet, and you should override doPost if your HTML code uses the POST method.



[Bear: sorry Paul, I split this incorrectly]
+Pie Number of slices to send: Send
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 814 times.
Similar Threads
destroy method
overridding service()
override service()
doubt in http methods
Service method
More...

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