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 single message resource for multiple war files 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 "single message resource for multiple war files" Watch "single message resource for multiple war files" New topic
Author

single message resource for multiple war files

raja addala
Greenhorn

Joined: Jul 10, 2008
Posts: 1
Hi All,

I want to make an ear which is having multiple WAR files. Each war file is having one messageResource file with it. The problem is that when ever I am deploying the code the application is not recognising the messageResource file.
Is there any way to access the messageResource file.

<message-resources key="labelResources"
parameter="LabelMessageResources"
factory="com.exp.framework.common.resource.FrameworkMessageResourcesFactory"
null="false" />


The above code is present in all the struts-config.xml files in all the wars.
The JSP code for all the jsp's in all the war files is as below

bean:message key="label.example" bundle="labelResources"/>

Please help me in resolving.

Thanks in Advance!!!
 
Consider Paul's rocket mass heater.
 
subject: single message resource for multiple war files
 
Similar Threads
Missing message for key "welcome.title" in bundle "(default bundle)" for locale en_US
read properties in my java application defined in spring bean "PropertyPlaceholderConfigurer"
Starting out with Struts 1.2.9
Cannot find message resources ..
Struts Message Resource