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]

Reply via email to