开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜