tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Bruseker" <...@fullcirclesystems.com>
Subject RE: JSP outputting text file to wrong directory
Date Wed, 28 Nov 2001 16:04:26 GMT
Brent,

application.getRealPath( "/" ) should get the path to the root of your
webapp (so, if you want it to go in to a subdirectory you'll have to add +
"/somedir").

Ian

> -----Original Message-----
> From: Brent Ford [mailto:brent_ford2401@yahoo.com]
> Sent: Wednesday, November 28, 2001 8:58 AM
> To: tomcat-user@jakarta.apache.org
> Subject: JSP outputting text file to wrong directory
>
>
> Hi!
> I have a JSP file that outputs a text file. The
> problem is that when I call the JSP file the output
> file is created in the top-most directory of tomcat
> (/jakarta-tomcat-4.0.1). How do I get the text file to
> be created in the same directory as the JSP file
> (/webapps/examples/JSP/MyJSP)?
>
> Thanks in advance,
> bf.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message