How do I programmatically find the DocBase of my webapp?

2004-09-03 Thread Glanville, Jay
Hello all,

Quick question here (I hope).  Inside of my web application, I want to
find the full, absolute file path to this application's doc base.  How
do I do this?  Basically, I want to ensure that files X, Y and Z exist
before my application starts to respond to requests.

JDG

--
Jay Glanville
Software Engineer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I programmatically find the DocBase of my webapp?

2004-09-03 Thread Shapira, Yoav

Hi,
Why don't people ever search the archives before posting?  At least
that's how it seems ;)

Use ServletContext#getRealPath(/) if running unpacked, which I bet is
your use case.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 2:00 PM
To: [EMAIL PROTECTED]
Subject: How do I programmatically find the DocBase of my webapp?

Hello all,

Quick question here (I hope).  Inside of my web application, I want to
find the full, absolute file path to this application's doc base.  How
do I do this?  Basically, I want to ensure that files X, Y and Z exist
before my application starts to respond to requests.

JDG

--
Jay Glanville
Software Engineer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I programmatically find the DocBase of my webapp?

2004-09-03 Thread Jay Glanville
Thanks Yoav.

In my defense, I did perform a search.  However, NOT in my defense, my
search was a little week: do you know how many hits you get when
searching the archives for 'docbase'?  Not a good word to limit by.  ;-)

--
Jay Glanville
Software Engineer


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 03, 2004 2:07 PM
 To: Tomcat Users List
 Subject: RE: How do I programmatically find the DocBase of my webapp?
 
 
 
 Hi,
 Why don't people ever search the archives before posting?  At least
 that's how it seems ;)
 
 Use ServletContext#getRealPath(/) if running unpacked, 
 which I bet is
 your use case.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Glanville, Jay [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 2:00 PM
 To: [EMAIL PROTECTED]
 Subject: How do I programmatically find the DocBase of my webapp?
 
 Hello all,
 
 Quick question here (I hope).  Inside of my web application, 
 I want to
 find the full, absolute file path to this application's doc 
 base.  How
 do I do this?  Basically, I want to ensure that files X, Y 
 and Z exist
 before my application starts to respond to requests.
 
 JDG


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]