File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Problem with html:errors and [CODE]i18n[/CODE] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with html:errors and [CODE]i18n[/CODE]" Watch "Problem with html:errors and [CODE]i18n[/CODE]" New topic
Author

Problem with html:errors and [CODE]i18n[/CODE]

john jum
Greenhorn

Joined: Oct 24, 2007
Posts: 1
Hi people! at first .. sorry but my english it's very very bad...
i try to describe my problem...

i'm using two properties files to internacionaliz.. my site. All works fine except when i validate a form that contain any error.

with tag the list of errors its printed but not in the correct locale, only in the default.

My configuration:



i have 2 properties files named Messages.properties and Messages_es.properties in classes/common/resources/

then i have an action to change the locale who puts in sessionScope a var who contains the locale "es" or "ca" (Spanish or Catalan).

finally in the jsp, the following code to translate <fmt:messages>:



and finally in the same jsp.. tag to show the errors...


summarizing if i change the locale spanish for catalan or viceversa all works fine, but when errors are present the message its only in the default bundle

I am grateful for any type of help or commentary and return to ask for pardon for my language...



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with html:errors and [CODE]i18n[/CODE]