File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes message-resources problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

message-resources problem

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
Hi, I'm having trouble with my error messages. Can there only be one message-resources entry in struts-config.xml? After adding a second message-resources entry, all my error messages disappeared. My error messages are stored in I tried to make another message-resources entry for internationalization/localization purpose. I tried to add another MessageResources copy which is MessageResources_en_US but I still can't my error messages appear again... Here are my struts-config entries. Please help... Thanks!

<message-resources parameter="errors.MessageResources"/>
<message-resources parameter="language.ApplicationResources"/>
[ July 18, 2006: Message edited by: Timothy Sam ]

SCJP 1.5
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864

Consultant, Sima Solutions
I agree. Here's the link:
subject: message-resources problem
It's not a secret anymore!