tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Serving files from a jar
Date Thu, 11 Dec 2003 17:15:00 GMT

A WAR file can contain images and static files outside a jar -- in fact,
WAR is designed to do exactly that.

To serve images directly out of a zip or jar files you have to write a
servlet -- what would be the URL for these images? ;)

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Vijay Kandy []
>Sent: Thursday, December 11, 2003 11:44 AM
>To: 'Tomcat Users List'
>Subject: Serving files from a jar
>Hello All,
>Does Tomcat serve static files out of a jar file? If so what are the
>I have several .html and .gif files and when I deploy a war file that
>includes these static content (as individual files in a folder) Tomcat
>serves them perfectly fine. However I would like to zip them as a
>separate from the class files. Any ideas?
>Thank you,
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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:
For additional commands, e-mail:

View raw message