Hello everyone,

I am relatively new to java and google usually helps me enough to struggle through but I am having significant trouble with this.

I have 2 properties files in the struts config xml file

<message-resources parameter="resources.ApplicationResources"/>
<message-resources parameter="resources.DatabaseProps" key="db"/>

I understand if there is more than one you need a key?

So, in my DatabaseProps.properties file I have this


I need it so that I can get the two properties in my java file, as these two need to be changeable so i can use different databases and tables.

I am having trouble getting the string database and table into my java code. Can you help me please?

Thanks in advance :)