| 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
|
|
|