JavaScript with servlet Get method
I have the following form element in JSP:
<form name="testForm" action="./test.do" method="post">
</form>
Now I want 开发者_Python百科to submit a form with a servlet get method using JavaScript.
Any help is appreciated.
Just change the method from post to get.
<form name="testForm" action="./test.do" method="get">
</form>
Now when it the form is submitted the data will be submitted using GET instead of POST params.
精彩评论