Is it possible to store web content (such as JSPs, HTML, images, CSS etc) in a JAR file?
I\'ve been looking at various options at modularising our web applications and t
Absolutely. Heck, you can store content directly in a WAR file, which is basically a JAR file with a few extra bits. Yes, you may need to write a custom resolver to use ClassLoader.getResourceAsStream, but basically as you're given the ability to generate the content however you like, fetching it from a jar file seems perfectly reasonable. You'll probably want to make sure it only fetches a very specific set of extensions though :)