The action EdgeWarUpload in the below form is a servlet and it is to upload a file.
<form action="EdgeWarUpload" method="post"
enctype="multipart/form-data">
<input type="file" name="file" size="50" />
<br />
<input type="submit" value="Upload File" />
</form>
It is working fine but inside the servlet post method , I want the name of the file that is uploaded.I tried with
request.getParameter("file");
But that is giving me null. How can I get the value of the file name from the form.Please check.