there is nothing stopping you from manipulating the "real path" returned from your 
application.getRealPath("/").

-----Original Message-----
From: Shahata, Ash [mailto:Ashraf_Shahata@;STERCOMM.COM]
Sent: Tuesday, November 12, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: getRealPath


Hi all - I want to write a file to the context dir where Im running my jsp
file, and I'm using getRealPath :
  String tfilepath =
application.getRealPath("/")+tcustid+tsep+tordernumber+".xml";

this will write the file in the same dir as the jsp file, however I want the
file to be written in a different directory... does anyone know how to do
this? I tried adding the dir name after the "/" but it didnt work!
Does anyone know how to change the directory so my file will get written in
my required directory?

Thanks

===========================================================================
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


DISCLAIMER:
The information contained in this e-mail may be confidential and is intended solely 
for the use of the named addressee. Access, copying or re-use of the e-mail or any 
information contained therein by any other person is not authorized. If you are not 
the intended recipient please notify us immediately by returning the e-mail to the 
originator.

==========================================================================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

Reply via email to