This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi Amit, You would need to trap that filename in a variable, and then use the java.io.FileInputStream to display its contents.
Hope this helps. Regards,
Sandeep Desai <BR>[email]firstname.lastname@example.org [/email]<BR><OL TYPE=1> <BR><LI><B>Sun Certified Java Programmer</B> <I>Scored 93 per cent </I><BR><LI><B>Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </B><I>Scored 56 out of 59 </I><BR><LI><B>IBM Enterprise Connectivity with J2EE </B><I> Scored 72 per cent </I><BR><LI><B>Enterprise Development on the Oracle Internet Platform </B><I> Scored 44 out of 56 </I><BR></OL>
Joined: Mar 30, 2001
Hi Amit, One more thing, that I owl like to mention.In case, your files are huge, then it would be advisable to use java.io.BufferedInputStream. You just need to change the code to :
In my case, reading and then writing the fileinputstream actually dumps a bunch of binary characters from the file to a new html page with a URL of the location of the servlet. Has anyone else experienced this problem??