I have the following form element in JSP:
<form name="testForm" action="./test.do" method="post">
</form>
Now I want to submit a form with a servlet get method using JavaScript.
Any help is appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just change the method from post to get.
Now when it the form is submitted the data will be submitted using GET instead of POST params.