struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Multiple message resource files
Date Tue, 16 Sep 2003 12:01:42 GMT
I am trying to use 2 message resource files in my application.

My struts-config.xml has:

  <message-resources parameter="ApplicationResources" null="false" />
  <message-resources parameter="MyWebAppResources" null="false" />

The errors are added in an Action bean with statements like:

  errors.add("ToteNotFound", new ActionError("error.tote.toteNotFound"));

and displayed on the jsp with:


However, messages are only displayed from the last file listed in
struts-config.xml (in this example, from Any
message in the other file is not recognised and results in something like:


How do I persuade my application  to display errors from either of two

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message