You could use the servlet context's getRealPath(). I'm not sure the exact
name of the class (I use Tapestry for all my web development and it accesses
it as getServletContext().getRealPath()).
-----Original Message-----
From: postmaster@purplevillage.com [mailto:postmaster@purplevillage.com]
Sent: Tuesday, September 24, 2002 12:26 PM
To: tomcat-user@jakarta.apache.org
Cc: jer@purplevillage.com
Subject: Locating Dynamically Generated Files...
My JSP uses a bean that creates a file dynamically.
Unfortunately, the file ends up in the jakarta-tomcat\bin directory rather
than
in my web app directory where the JSP tries to get it from.
How do I make dynamically generated files end up in my web app directory?
Anyone run across any sample code that does this?
Thanks...
Jerry
--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|