-Dmy.files=file://D|/Tomcat/Folder/
and then
String folder = System.getProperty("my.files"); URL url = new URL(folder + "myfile.txt"); InputStream in = url.openStream();
Bob
At 06:04 PM 12/22/2003 +0530, Karthikeyan wrote:
Hi.,
Problem: I have WAR file in the Tomcat Container. I have a folder in my file system that contains the files . (e.g. D:\Tomcat\Folder) I need to read the file on click of a link in the JSP pages and display on the browser.
Kindly, provide me with suggestions. A code snipplet will help me.
Thanks. Karthik.S
___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html