Hi,
See the allowLinking attribute:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]
>Sent: Sunday, March 28, 2004 1:26 AM
>To: [EMAIL PROTECTED]
>Subject: Directory question for the masters...
>
>I need to access a specific directory from within tomcat, but I'm
having
>a specific problem and require some advice.
>
>I have a link to a file in the servlet, something like
>"https://myserver.com/special-directory/file.zip";
>
>If I create the directory as follows:
>/export/home/tomcat/webapps/ROOT/special-directory/ and put "file.zip"
>in that directory, it all works perfectly.
>
>HOWEVER, if instead of creating the actual directory, I create a
>symbolic link to a different directory
>
>(i.e. in ROOT I type "ln -s /export/home/myfiles/directory
>special-directory", the linked directory appears, and (in unix) I can
>see/access the files. BUT - tomcat no longer finds the files, even
>though the linked directory has the required name and files.
>
>Is there some way to make tomcat "see" a linked directory?
>
>The problem is that the servlets are writing a data file for offline
use
>in one directory, and then I was hoping to symbolically link that
>directory under ROOT so the user could access it.  Worst case, I guess
I
>could write to "ROOT/special-directory", but I didn't really want the
>user files stored there - just a link. Since these files are created
"on
>the fly", a hard link won't work.
>
>Thanks very much in advance,
>
>-Richard
>
>---------------------------------------------------------------------
>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]

Reply via email to