-
1. Re: Static content in web applications
padmal May 7, 2003 9:09 PM (in response to einfo)What is the your requierment? Do you want to deploy and view it through the web browser or do u want without deploying view it?
-
2. Re: Static content in web applications
einfo May 8, 2003 1:46 PM (in response to einfo)I guess what I'm really after is a way to tell Jetty that any file requested in the war file that is not a jsp or a registered servlet should be returned as static content. Any ideas?
-
3. Re: Static content in web applications
jonlee May 9, 2003 9:13 PM (in response to einfo)You'll find that Jetty already has the standard mime-types programmatically configured. So if you have JPGs and the like in your WAR file and you try to access them, they will be displayed. For any exotic content, you will need to add the mime-type mappings either in the Jetty webdefault.xml or in your own WAR's web.xml file.
Tomcat has it's mime-type mappings in the parent web.xml.
This is no different to configuring a web server for serving static content.
Hope the answers your questions.