Hi,
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
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html><head><title>Fileupload</title></head>");
out.println("<body>");
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.
out.println("</body>");
out.println("</html>");
}