You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/06/27 14:33:19 UTC

DO NOT REPLY [Bug 10279] New: - only one message-resources is loaded.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10279>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10279

only one message-resources is loaded.

           Summary: only one message-resources is loaded.
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: volker.krebs@abas.de


I'm not quite sure if this is a bug or a feature.
When want to load two message-resources into one Application I do the following
in my struts-config:

  <message-resources
    parameter="ValidationResources"/>
  <message-resources
    parameter="ApplicationResources"/>

I expect that all Properties of both files are accessible in my Application
(Same if I specify two times the same key). But as I've seen in
org.apache.struts.action.ActionServlet.initApplicationMessageResources(ApplicationConfig
ac) the last message-resources entry overwrites all others.

I think it is quite useful to specifie several property resources if you use a
lot of code generation. (My ValidationResources are generated together with my
FormBeans).

Volker

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>