I need to include some values from a file.properties into the WEB-INF/web.xml something like this:
<param-name>uploadDirectory</param-name>
<param-value>myFile.properties['keyForTheValue']</param-value>
I’m currently working with this:
- JBoss
- JEE5
You can add this class, that add all properties from your file to JVM. And add this class like context-listener to
web.xmlin web.xml
now you can get all properties in you project using
or in web.xml