File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Softlink woes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Softlink woes" Watch "Softlink woes" New topic
Author

Softlink woes

Swati Singhal
Ranch Hand

Joined: Dec 08, 2003
Posts: 31
Hi,

I have my application installed on Tomcat server.
I created a softlink from within my application context to a data folder which is outside the appliation context.

Say for e.g. my app name is abc and i create a folder named test within it
so /abc/test/ points to a data folder outside the application context.

Now when I run this web application, I want to fetch one of the files under the data folder (Which is outside the application context), I actually point to /abc/test/ and then the path to that file.

Say it's a text/image file, I am able to get the contents of this data folder by creating the softlink, but when I try to open this text/image file using my softlink, it says File not found, whereas the file is very much there...

Please help !!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Search for the "allowLinking" attribute


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Softlink woes
 
Similar Threads
Loading file from server into browser window
Difficulty in image file accessing
URL pattern problem
how to access other folders outside webapp in tomcat6
Loading file from server into browser window