I have a simple form which accepts a username and a password. I have to use sendRedirect()
method for the page to redirect to one page if log in is valid and to
This is kinda old, but here I've succesfully run this:
response.setStatus(307); //this makes the redirection keep your requesting method as is.
response.addHeader("Location", "http://address.to/redirect");
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.8 for explanation of HTTP 307 status code.