Howdy,

>Yes, I'm serving images directly out of this directory.

Then I would reduce your options to 2:
- Have Apache serve the images, not tomcat, i.e. have the img src point
to the Apache server.
- Have Tomcat serve the images by including a copy of the images in your
WAR file.

Symbolic links are not suitable for this task ;)

Yoav Shapira

>
>Web app: /path/to/tomcat/webapps/foo
>Context: /foo
>Images:  /path/to/apache/images
>
>index.jsp contains an image link -> src="images/foo.jpg"
>
>Rob Abernethy
>Dynamic Edge, Inc.
>
>-----Original Message-----
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 18, 2003 3:42 PM
>To: Tomcat Users List
>Subject: RE: Deployment with Symbolic Links
>
>
>Howdy,
>
>>Is using a WAR file the best way to deploy a web app to a remote
>server?
>
>Yes.
>
>>Is there a better way to reload the web app other than to remove and
>>reinstall it?
>
>You can use the Tomcat Manager's webapp deploy/reload mechanisms,
either
>graphically in the browser or via Ant.
>
>>Is there a better way to grant the web app access to the image
>directory
>>other than the symbolic link?
>
>There are alternatives, including:
>- Specifying the image directory name (absolute path) in your web.xml
as
>a context-param or servlet-param, or in another configuration file your
>app reads.
>
>- Specifying the image directory as an env-entry-ref in your web.xml
and
>defining it as a resource in the server, i.e. in server.xml for tomcat.
>
>- Including the images in your WAR.
>
>- Putting the images in a database.
>
>Are you serving images directly out of this directory, i.e. it's part
of
>an <img src=...> tag?
>
>Yoav Shapira
>
>
>
>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]
>
>
>
>---------------------------------------------------------------------
>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