Thanks for your response.

The servlet will simply launch a Timer Task that will periodically obtain a 
list of files under /foo/bar, examine their timestamps and delete the file if 
its shelflife has expired. There is no requirement to expose anything...

Thanks,
Rob.

-----Original Message-----
From: Markus Schönhaber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 9:37 AM
To: Tomcat Users List
Subject: Re: Access to directories outside document root?

Rob Elliott wrote:
> Is it possible to obtain access to an arbitrary directory (possibly
> mounted file) which is not below the Tomcat webapps directory from
> within a webapp? GetServletContext.getRealpath("") seems to only access
> directories below the webapp app directory...

What exactly do you want to achieve?

For example: If you want the contents of the directory /foo/bar to be 
accessible via, say
http://<your Tomcat>/mybardir
you simply have to create a <Context> definition with the "docBase"-attribute 
set appropriately.

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Information contained in this e-mail and any attachments are intended for the 
use of the addressee only, and may contain confidential information of Ubiquity 
Software Corporation.  All unauthorized use, disclosure or distribution is 
strictly prohibited.  If you are not the addressee, please notify the sender 
immediately and destroy all copies of this email.  Unless otherwise expressly 
agreed in writing signed by an officer of Ubiquity Software Corporation, 
nothing in this communication shall be deemed to be legally binding.  Thank you.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to