Date sent: Tue, 13 May 2008 16:21:22 -0700 (PDT) From: John Buchholz <[EMAIL PROTECTED]> Subject: Shared Javascript, CSS, and Image Files To: users@tomcat.apache.org Send reply to: Tomcat Users List <users@tomcat.apache.org>
> Hi, > > I am looking for the recommended solution for when multiple webapps > need to use the same sets or javascript, css, and image files. I have > created a symbolic link in $CATALINA_HOME/webapps/myapp called > "shared" pointing to /home/myhome/shared_files. When I refer to > /shared/test.js in my jsp, it does not recognize it. Is there > something I need to do to tell Tomcat to follow symbolic links or even > better is there a recommended location under $CATALINA_HOME for me to > add my collection of shared files that will be seen by all webapps? > > I am using Tomcat 5.5.23. > You have to use the allowLinking attribute in your context config. http://tomcat.apache.org/tomcat-5.5-doc/config/context.html -Steve O. --------------------------------------------------------------------------------------------- Steve O. http://www.steveo.us B17G WWII Bomber "Yankee Lady" Flight http://www.steveo.us/b17ride --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]