war « Resource « JSP-Servlet Q&A

1. Read resource inside context (.war) from a jar file    stackoverflow.com

I am using JBoss4.0.1 and Struts2.1.6 I have an application which have some configuration file(appConfig.xml in folder WEB-INF/config). This congiuration file contains the relative paths of other files to be read.(other.xml, some.xml etc). ...

2. How to load resource from jar file packaged in a war file?    stackoverflow.com

I need to load a property file from the jar. The jar is included in war file. Here is the structure


3. Programmatically reading static resources from my java webapp    stackoverflow.com

I currently have a bunch of images in my .war file like this.

When I generate html via ...