I've encountered a rather annoying issue.  To select the language in which our 
labels should be displayed, we use fmt:setLocale.  Everything works fine, 
everybody's happy.

But.  To validate our forms, we use DynaValidator.  In our webapp, we have 1 
form which has only 1 field.  When validation fails, the browser redisplays the 
form, with an appropriate error message.  The problem is that we show our error 
message with <html:errors /> and since struts doesn't know the locale which was 
set with fmt:setLocale, this message is retrieved from the resource bundle of 
the standard browser language.  

Is there anyone who knows how to set the language in a JSP, for that particular 
page?  It has to be on the page itself, it can't be done in an action or 
somewhere else.  Or maybe another way to show the error message with 
logic:messagesPresent and retrieval of the error message from a resource bundle.

Thanks in advance

Kind regards,
Bjorn De Bakker



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

Reply via email to