Hi., I have put the file path in the env variable and read it. But when i pass it through the URL object, it is not openning. I need to open the file in the browser.
-----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED] Behalf Of Bob Withers Sent: Monday, December 22, 2003 6:26 PM To: [EMAIL PROTECTED] Subject: Re: How to dynamically update WAR File You might consider setting a system property to point to the folder: -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 ___________________________________________________________________________ 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
