Okey,

I might have been not specific enough with my question:
wath I wanna do is to be able to link to the files (eg to download, or to use an image in a html-page)

So supposed there is a file in the /media directory, let's say file.jpg
There is no way to acces this file trough an url without creating a link to the media folder (At least, this is what I found out, or am I wrong here??)

So what I do is to create a symbolic link, in the MyApp-directory, (media -> /media/) and than I can use
http://server/MyApp/media/file.jpg to acces the file.jpg

Indeed, like you say, I can acces the target directory directly in my Java code, that's no problem, but what I wanna do is something different?

Greetings

Ward

Caldarale, Charles R schreef:
From: Ward [mailto:wardloot...@gmail.com]
Subject: Deployment: do not delete specified folder

to be able to acces them via the web-application,
I created a symbolic link into my application's root directory, which points to the folder where
the files are actually stored.

"Doctor, doctor, it hurts when I do this."

Why not just access the target directory directly, and eliminate your 
self-imposed complexity with all of its undesirable side effects?  If you don't 
want to hard-code the path, set it in an environment variable, system property, 
or initialization parameter for the webapp.  Look here for the last item:

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parameters

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to