> 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
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
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
Angelo,
Look at Tapestry-Upload source code.
There should be an example.
Marcus
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
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
with "images" under "youApp\src\main\webapp\"
Hi Angelo,
try FileReader("context:images/info.xml")
Marcus
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