Hi All, I've developed one small application which will be used in different area using different database connection. I want to make properties file which will say all the value of *<data-source>* in *struts-config* and put the value in *struts-config* when tomcat starts and that's how we can get the right database connection every time. I'm looking for something like this:
<data-sources> <data-source type="org.apache.commons.dbcp.BasicDataSource"> <set-property property="driverClassName" value="$(DRIVERNAME)" /> <set-property property="url" value="$(URL)" /> <set-property property="username" value="$(USERNAME)"/> <set-property property="password" value="$(PASSWORD)"/> </data-source> </data-sources> And the properties file will hold all the variable values. Is there any way to achieve this? Thanks in advance, Anindya