Web tier: servlets, JSP, Web frameworks: request.getParameter("fieldName") returns NULL for POST method??

  1. Hi All,
    Why I am unable to retrieve the form data when I set the form method to POST ( This I need for File Uploading).

    But, unfortunately, I am ubable to get form field values.

    Can anybody help?

    I am seeing even if I am ubale to get those things through request object, I am seeing those values in

    referer: attaribute derived from headers

    any solutions?

    Please help

  2. try request.getAttribute("fieldName")

    instead of getParameter.
  3. The "fieldName" is into <form></form> tags ???


    <form action="" >
      <input type="text" name="fieldName" value="anything"/>

    try request.getAttribute("fieldName")instead of getParameter.