When I upload a file using <input type="file">
in a HTML form and I give the action as <form action=auth>
where 'auth' ia a servlet. Now I want to know that When user press Submit button where does the file reside? If in Servlet I want to retrieve the file, What should I do?
Edit
Now I read this file(pdf) using java libraries like
public void doGet(HttpServletRequest req, HttpServletResponse resp)
{
try {
String INPUTFILE=req.getParameter("filename");
System.out.println(INPUTFILE);
PdfReader reader = new PdfReader(INPUTFILE);
int n = reader.getNumberOfPages();
System.out.println(n);
String str=PdfTextExtractor.getTextFromPage(reader, 2); //Extracting the content from a particular page.
System.out.println(str);
} <br>
But it shows the following error java.io.IOException: java_learn.PDF not found as file or resource