Re: [xmlWiki-developers] Help: reading file in a web app
Brought to you by:
elhugo
From: Jim K. <ka...@ie...> - 2001-11-14 12:42:01
|
You have to watch your current directory closely, as its usually something related to where you started Tomcat. You may want to consider accessing %TOMCAT_HOME% and building the complete path to your file by appending to it. I haven't found a way yet to ensure that the starting directory is where the servlet is located. Jim ----- Original Message ----- From: "Radu Dram" <rd...@ly...> To: <xml...@li...> Sent: Wednesday, November 14, 2001 12:31 AM Subject: [xmlWiki-developers] Help: reading file in a web app > Hi, guys. > > I try to read a file located in the same location with the sources for the web app., but I can't succeed. The only way in works is if the file is in c:\winnt\system32. > I used getServletContext().getResourceasStream("foo.xsl") but nothing. > > Could you please advise? > > Thank you. > > Radu > > > > _______________________________________________ > xmlWiki-developers mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlwiki-developers > |