Hi,
I am trying to
test the
Servlet basics on the
tomcat server. For the GET method, the request parameters are passed in the address line. I developed a small servlet which read all the parameters and display it. Working fine. I place these servlet as the action element in the HTML FORM and test for default GET and another POST method. Aslo working fine. BUT....
When I tried the following URL in HTML FORM action attribute using GET method
/myapp/TestServlet?name=narendra
while running, in the browsers address bar, the ?name=narendra is ignored and the FORM fields are appended. OK
Surprisingly, when I tried the same using POST method, The name parameter from the addtess bar is included in the parameter list along with the form parameters. I understand that the request paremeters for POST method are palced the the message body.
How?
Thanks
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0