You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by MassimoH <Ma...@gmail.com> on 2009/03/23 15:54:00 UTC

[S1]: Resource configuration.

I'm maintaining a legacy Struts 1.1 application that defines multiple
resource (.properties) files per key in struts-config.xml using a
comma-delimited list like this:

<!-- Default key -->
<message-resources parameter="com.xyz.SomeResources,com.xyz.MoreResources"/>
<message-resources key="subProjectA"
parameter="com.projA.SomeResources,com.projA.MoreResources"/>

This has worked fine for years (all resource files get loaded), however
after I've redone the build to use Maven/Jetty, this breaks. Only the first
resource file gets loaded and all others get ignored.

Why would this comma-delimited list feature break? What could possibly be
causing this problem?


Please understand, as a project maintainer, I don't have rights to make
substantial changes to source code:
 - I can't combine separate resource files together
 - I can't assign each resource file to a unique key.
 - I can't upgrade to a newer Struts framework.


-- 
View this message in context: http://www.nabble.com/-S1-%3A-Resource-configuration.-%3Cmessage-resources-parameter%3D%22one%2Ctwo%2Cthree%22%3E-tp22661765p22661765.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: [S1]: Resource configuration.

Posted by "Givler, Eric" <eg...@state.pa.us>.
This could be caused by the differences in Digester/BeanUtils versions between the two.  You could step it in the old version and in the new one and see how it parses those properties.

-----Original Message-----
From: MassimoH [mailto:MassimoHeitor@gmail.com]
Sent: Monday, March 23, 2009 10:54 AM
To: user@struts.apache.org
Subject: [S1]: Resource configuration. <message-resources parameter="one,two,three">



I'm maintaining a legacy Struts 1.1 application that defines multiple resource (.properties) files per key in struts-config.xml using a comma-delimited list like this:

<!-- Default key -->
<message-resources parameter="com.xyz.SomeResources,com.xyz.MoreResources"/>
<message-resources key="subProjectA" parameter="com.projA.SomeResources,com.projA.MoreResources"/>

This has worked fine for years (all resource files get loaded), however after I've redone the build to use Maven/Jetty, this breaks. Only the first resource file gets loaded and all others get ignored.

Why would this comma-delimited list feature break? What could possibly be causing this problem?


Please understand, as a project maintainer, I don't have rights to make substantial changes to source code:
 - I can't combine separate resource files together
 - I can't assign each resource file to a unique key.
 - I can't upgrade to a newer Struts framework.


--
View this message in context: http://www.nabble.com/-S1-%3A-Resource-configuration.-%3Cmessage-resources-parameter%3D%22one%2Ctwo%2Cthree%22%3E-tp22661765p22661765.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org