Using Tomcat as my Servlet Container, how can I deploy two identical wars to different contexts and simply use the context path as the variable which will determine which properties file to load? I'm looking to do something like this in web.xml:
<context-param>
<param-name>initialization.file</param-name>
<param-value>
WEB-INF/config/context${contextPath}.properties
</param-value>
</context-param>
and then load the initialization file based on this context property. Is this possible? If so, how?
I'm using Tomcat 6, Java 6, and Servlet API 2.5.