This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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]
 
Similar Threads
Error en WebSphere
Textarea Javascript Reload
Connection Refused Error
regarding the salary in Colombia...
GWT IE8 - 'undefined' es nulo o no es un objeto