• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...

Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic