Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [s2] Issue with custom ResourceBundle using Struts 2.0.2/XWork2 RC1

Nate Drake

2007-01-08

Replies:

I've created two test WARs based on the struts2-blank WAR that demonstrate the
issue. struts-blank-201.war uses Struts 2.0.1, and struts-blank-203.war uses
code from subversion as of ~9AM EST this morning.

The changes to each include the following:

o A custom ResourceBundle (TestBundle)
o Removal of resource property files
o Addition of struts.properties files to declare the custom ResourceBundle

When running the 2.0.1 based WAR, two instances of TestBundle are created, but
after that no new instances are created. When running the 2.0.3 based WAR, every
message lookup causes a new instance to be created.

You can download the WARs from:

http://www.slimeslurp.net/s2

Thanks!



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.