- Place ${propertyName} in you web.xml file and specify the actual value via -DpropertyName=value (see a forum entry related to this...) also known as variable substitution.
- If you can afford to do this at compile time then:
- do so using a build tool such as maven (an example)
- Filter the web.xml file by configuring the maven-war-plugin as shown in the last post in this thread. There are some generic examples here too but they aren't as clear cut for the web.xml file.
- do so using a build tool such as maven (an example)
Thursday, July 29, 2010
How to do runtime property substitution for web.xml
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment