Re: T5: xml file location

2007-09-02 Thread Josh Canfield
> I tried your second approach: > requestGlobals.getHTTPServletRequest > ().getSession().getServletContext().getRealPath("app") > > it returns : /usr/local/apache-tomcat-5.5.23/webapps/my_app_context/app > > but I checked the running program, the file is here > /usr/local/apache-tomcat-5.5.23/webap

Re: T5: xml file location

2007-09-01 Thread Angelo Chen
Hi Josh, I tried your second approach: requestGlobals.getHTTPServletRequest().getSession().getServletContext().getRealPath("app") it returns : /usr/local/apache-tomcat-5.5.23/webapps/my_app_context/app but I checked the running program, the file is here /usr/local/apache-tomcat-5.5.23/webapps/R

Re: T5: xml file location

2007-09-01 Thread Angelo Chen
Hi Marcus, I checked, it seams using java.io.tempdir. Marcus-11 wrote: > > Angelo, > > Look at Tapestry-Upload source code. > There should be an example. > > Marcus > > -- View this message in context: http://www.nabble.com/T5%3A-xml-file-location-tf4364651.html#a12445874 Sent from the

Re: T5: xml file location

2007-09-01 Thread Marcus
Angelo, Look at Tapestry-Upload source code. There should be an example. Marcus

Re: T5: xml file location

2007-09-01 Thread Josh Canfield
Since, I assume, you are deploying your web application into a servlet container you are not going to be able to use a relative path to get at the file. Tapestry isn't doing the loading of the file so using any Tapestry related path constructs is not going to work. Your best bet is putting your fi

Re: T5: xml file location

2007-09-01 Thread Angelo Chen
Hi Marcus, This does not work neither, kind of strange. Marcus-11 wrote: > > Hi Angelo, > > try FileReader("context:images/info.xml") > > Marcus > > -- View this message in context: http://www.nabble.com/T5%3A-xml-file-location-tf4364651.html#a12441264 Sent from the Tapestry - User mail

Re: T5: xml file location

2007-09-01 Thread Marcus
with "images" under "youApp\src\main\webapp\"

Re: T5: xml file location

2007-09-01 Thread Marcus
Hi Angelo, try FileReader("context:images/info.xml") Marcus

T5: xml file location

2007-09-01 Thread Angelo Chen
Hi, I have this info.xml file that I need to open, first I put it under WEB-INF and use : fr = new FileReader("info.xml"); got FileNotFoundException, I put it under images directory as the template was able to get the pictures there, then I use FileReader("images/info.xml"), same exception. where