IntelliJ Java IDE
The moose likes Struts and the fly likes Multiple resource message config problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Multiple resource message config problem" Watch "Multiple resource message config problem" New topic
Author

Multiple resource message config problem

Allen Hong
Greenhorn

Joined: Jul 26, 2003
Posts: 3
hi, all
I have a problem when I have more than one message-resources files, where I configure the files as follows (in the struts-config.xml):
<message-resources parameter="resource1"/>
<message-resources key="alternate" parameter="resource2"/>
When I am using messages defined in resource1.properties, it works fine. However, when I try to use messages defined in resource2.properties, it always complains:
org.apache.jasper.JasperException: Missing message for key "index.test"
Anyone encounter such error before? How to solve the problem? Thank you very much
Allen Hong
Greenhorn

Joined: Jul 26, 2003
Posts: 3
Oh, there is already one example bundled with the struts release
Seems that we have to specify the bundle if we have more than
one property file. The usage is as follows:
<bean:message key="prompt.password" bundle="alternate"/>:
^_*
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 201
Allen,

did your problem get fixed?


Benson
 
 
subject: Multiple resource message config problem
 
Threads others viewed
how to make the screen to move along with the JTree
Internationalization
Message Resources
specifying different resource bundle in validation.xml
problem in parsing struts-config
IntelliJ Java IDE