All that is controlled by the tool app (Not written by me). That is why I have to play nice. :-) Here is my web.xml for the tool app.
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE web-app (View Source for full doctype...)> - <web-app> <display-name>tool_app application</display-name> <description>toolapp</description> - <!-- Define servlet-mapped and path-mapped example filters --> - <!-- Define servlets that are included in the example application --> - <servlet> <servlet-name>servletToJsp</servlet-name> <servlet-class>servletToJsp</servlet-class> </servlet> - <servlet> <servlet-name>invoker</servlet-name> <servlet-class>org.apache.catalina.servlets.InvokerServlet</servlet-class> - <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> - <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> - <servlet-mapping> <servlet-name>servletToJsp</servlet-name> <url-pattern>/servletToJsp</url-pattern> </servlet-mapping> </web-app> -----Original Message----- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, June 18, 2009 10:49 AM To: Tomcat Users List Subject: RE: Serving images from classes directory > From: Susan G. Conger [mailto:sus...@bfcassociates.com] > Subject: RE: Serving images from classes directory > > Sorry, it is a treated as a package with .xml, .html, .class files, and > .java files. So it is serving up the .html files that are in there > just fine. You're saying that you already have some mechanism of delivering .html files from WEB-INF/classes? How does that work? > Maybe the images directory needs to be > added to the classpath? A classloader's classpath is used to access .class files and other resources *via a classloader*; a classloader can not deliver .html files to an HTTP client, so how are you doing it? Do you already have a servlet that reads .html from WEB-INF/classes and writes the output to the response output stream? - 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