Did the request go the servlet? I suppose these are the questions in a beginners mind which should be tried and tested on your own.
Just that you can create a topic and get easy answers, will only make your ability to understand and troubleshoot your issues.
Any doubts after, with what you have tried, are always welcome.
Overriding this method to support a GET request also automatically supports an HTTP HEAD request. A HEAD request is a GET request that returns no body in the response, only the request header fields.
When overriding this method, read the request data, write the response headers, get the response's writer or output stream object, and finally, write the response data. It's best to include content type and encoding. When using a PrintWriter object to return the response, set the content type before accessing the PrintWriter object.
This is my first reply so pkz excuse me for mistakes.
The doGet() and doPost methods are only supported by httpServlet.
So you can use them while creating an httpServlet
and the default implementation of these methods is that you get output saying that this method is not supported.
Please correct me if i am wrong
Thanks and Regards
Although you'll probably only use POST and GET.
If you do not override doGet then you will get an error if sned a GET request:
in Tomcat, something like :
HTTP Status 405 - HTTP method GET is not supported by this URL