I have some properties file in WEB-INF. And I want to load it as a bundle. Is there any way to do that?
...which is not necessary for `ExternalContext#getResource()` methods by the way.
BalusC
2010-01-26 12:48:22
+4
A:
Use either ExternalContext#getResource()
or ExternalContext#getResourceAsStream()
wherein you pass the context-relative URL/path.
E.g.:
properties.load(externalContext.getResourceAsStream("/WEB-INF/file.properties"));
BalusC
2010-01-26 12:47:41