This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Multiple AppResources into one sturts-config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple AppResources into one sturts-config" Watch "Multiple AppResources into one sturts-config" New topic

Multiple AppResources into one sturts-config

Ravi Seshu
Ranch Hand

Joined: Mar 19, 2005
Posts: 38
is there a way i can have multiple file like for my module called
funny if i want those resource bundle to be inserted into funnyapplicationresource

so how can i work on with it what are the changes need to be made, is it adding <message resource
tag in struts-config...or ..anythingelse

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Yes, you can have multiple resource bundles defined in a single struts-config.xml file. In order to keep them straight, though, you must use the "key" attribute when configuring them. Then, when you access them, you must specify the "bundle" attribute to identify which bundle you want the message to come from.

This link explains the process in greater detail.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Multiple AppResources into one sturts-config
Similar Threads
Tomcat with multiple auth-constraints
Can i have multiple struts-config files in struts1.1
Can i keep a configFile in webapp?
Is it possible to have 2 struts config?
Multiple struts-config files