Display file name
I have a form linked to a servlet that uploads files. I would like the name of the file that has been uploaded to be displayed next to the <h3>line once it has been processed. I have no problems linking the servlet to the form or uploading the file. I simply want the name of the uploaded file to appear next to the word uploaded. Thank you for your help in advance.
// Generate some sample HTML
PrintWriter out = response.getWriter();
out.println("<h3>Your file has been successfully uploaded</h3>");
out.println("<h3>The following file was uploaded </h3>"); // Name of file should appear next to the word uploaded.
Re: Display file name
put the uploaded file in your application context and give me the link as http://usersitename.com/<directory>/<userfilename>