> From: Christopher Tiwald [mailto:[email protected]] > Subject: What is the right way to share resources across contexts?
> what is the "right way" to share static assets across contexts and between > servers running tomcat? One easy way is to place the static resources under one or more unique <Context>s, with the location of the assets outside of Tomcat's directory space. Create a conf/Catalina/[host]/[staticName].xml file containing a <Context> element with a docBase attribute pointing to the location of the resources. Tomcat's standard DefaultServlet will deliver them to clients automatically. - 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: [email protected] For additional commands, e-mail: [email protected]
