|
||
|
|||
|
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>"); }
|
|
|||
|
put the uploaded file in your application context and give me the link as http://usersitename.com/<directory>/<userfilename>
__________________
Free Java,J2EE,Struts,EJB,XMl,SPring,Hibernate and etc ebooks download here Are U a BLOGGER? then visit BLoggerBulkpost.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to execute a simple display without a main method | chronoz13 | Java Code Snippets and Tutorials | 5 | 13-01-2010 11:28 AM |
| display time | kalees | JavaServer Pages: JSP & JSTL | 0 | 01-01-2010 11:40 AM |
| Help!how to get a graphical display of this game | makarov | What's Wrong With My Code? | 1 | 17-12-2009 03:15 PM |
| [SOLVED] Need to display multiple images from database on a webpage. | raghuprasad | JavaServer Pages: JSP & JSTL | 3 | 13-05-2009 08:15 AM |
| Display the content method? | rocafella5007 | What's Wrong With My Code? | 1 | 30-04-2009 04:46 PM |