When creating the file, give it a absolute path ("c:\temp\myfile.txt") A
application should have its own absolute path.
----- Original Message -----
From: "Anand Desai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 10:33 AM
Subject: My project directory in JSP/java.
> Hello,
>
> I would like create a file in my application-project directory of my
tomcat
> installation. I instantiate an object in my JSP and I am using
> FileOutputStream tocreate the file.
> When I create a file, it gets created at a completely different place(
under
> C:\Documents and setttings\... ) and not in my project . If I can get the
> full pathname of my project directory then I could create the files where
I
> want.
> Can you please help?
>
> Thanks,
> Anand
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com