> From: Andre-John Mas [mailto:aj...@sympatico.ca]
> Subject: Re: Serving images from classes directory
> 
> The only way to serve images from the classes directory would be for
> you to write a servlet that reads the files and then serves them up.
> While you can do this, don't be surprised by the performance overhead.

Why would there be any more overhead with that approach than with letting the 
DefaultServlet do it from some location other than WEB-INF/classes?

If the previously suggested internal forwarding mechanism doesn't work (haven't 
tried it), then extending Tomcat's DefaultServlet would provide a relatively 
easy means of delivering the content.

 - 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

Reply via email to