Using properties in web.xml

Posted by Pich on Stack Overflow See other posts from Stack Overflow or by Pich
Published on 2010-06-01T10:35:18Z Indexed on 2010/06/02 13:53 UTC
Read the original article Hit count: 270

Hi,

I would like to control the settings in web.xml and using different once for different environments.

Is it possible to use a property, from a property file on classpath, in web.xml? Something like this:

 <context-param>
  <param-name>myparam</param-name>
  <param-value>classpath:mypropertyfile.properties['myproperty']</param-value>
 </context-param>

Best regards

P

© Stack Overflow or respective owner

Related posts about web-applications

Related posts about property