Results 1 to 1 of 1
Thread: Struts.config problem
- 05-31-2012, 05:41 PM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
Struts.config problem
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
database=adatabase
table=atable
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 :)
legolad
Similar Threads
-
Tomcat 5.0 and struts-config.xml
By ajeeb in forum Advanced JavaReplies: 1Last Post: 06-07-2009, 04:53 PM -
How do i get connection string from struts-config.xml ?
By Md Saim in forum Web FrameworksReplies: 1Last Post: 09-05-2008, 01:20 PM -
Using a variable in Struts config, to redirect
By vijayr in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 05-12-2008, 08:33 PM -
question about struts-config.xml
By christina in forum Web FrameworksReplies: 2Last Post: 02-15-2008, 10:45 AM -
struts-config.xml
By Heather in forum Web FrameworksReplies: 2Last Post: 01-17-2008, 11:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks