struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31827] - Bug in validation part
Date Wed, 10 Nov 2004 01:18:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31827>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31827

Bug in validation part

niallp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From niallp@apache.org  2004-11-10 01:18 -------
There are issues with bundles and validator - for further info see Bug 32131 
and Bug 21760.

Having said that it looks like your mis-understanding the use of *bundle* 
attribute in Struts Tags and Validator. Different language bundles for the same 
messages don't need to be defined with a different "Struts Bundle". Struts use 
of *bundle* is where you want to break up your messages in different areas of 
the webapp - not the same messages with different language translations.

Sounds to me like all you need is to define the messages resources in your 
struts-config.xml, for example ...

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

Then all you need to do is create your default message resources file...

MyWebAppResources.properties

and then all the different languages, you add files with the same name plus the 
ISO language code...

MyWebAppResources_ru.properties
MyWebAppResources_en.properties

In struts terms all this files make up the *default* bundle and you don't have 
to use te *bundle* attribute in any of the struts tags or validator.

Heres a few links that might help.

http://struts.apache.org/userGuide/building_view.html#i18n
http://struts.apache.org/userGuide/configuration.html#resources_config
http://www.javaworld.com/javaworld/jw-05-2004/jw-0524-i18n.html
http://www.systemmobile.com/articles/strutsMessageResources.html

Closing this as invalid.

Niall

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


Mime
View raw message