Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Servlets Getting POST Parameters???
I'm writing a servlet that handles the action from a form. When the form uses the "GET" HTTP method and I do request.getParameter(whatever_parameter) it works just like it should. However, when I change the method of the form to "POST" the getParameter function always returns null. I'm pretty sure my form is not the problem, and neither is my servlet code. I've read in many many places that the request.getParameter function works with both methods. Is this true? If so what am I doing wrong?
If this technique is incorrect for POST, is there a way to directly read the parameters using some kind of InputStream technique?