title: How can I return a 302 HTTP response in JSP?
body: <p>I need to submit a form using JavaScript. The problem is my JavaScript POST request gets an “OK — 200” response. In order to make it 302 I think I need to use <code>response.sendredirect</code> in my <del>JavaScript</del> JSP function. Can any body tell me how to use it? With example code.</p>