On 3/6/06, Anjishnu Bandyopadhyay <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am using the Struts resource bundle to display internationalized > messages in my JSP, > > Eg. <bean:message key="..."/> > > Here, the message is displayed according to the current locale. > > Now, I want to display a "French" string irrespective of the current > locale. > > Can you tell me how to implement this? > > <bean:message key="..." locale="fr_FR"/> is not working here.
The "locale" attribute is not used to specify the actual locale - its used to specify the key under which the locale is stored: http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-bean.html#message So either you put the French locale under some key - or if its always showing French, then why use a message resource at all? Just put the french text directly in the JSP. Niall > With best regards, > > Anjishnu. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]