I thing that ActionSupport.getText(..) does not check the global property file for some reason. It only check the class hierarchy of the action. Using <s:textfield key="blabla"/> does not help either. Any other ideas ? I'm about to write my own method in the base action class that does the i18n and check the global resource, but feels not right?
2007/12/5, Ian Roughley <[EMAIL PROTECTED]>: > > You should probably try using the "key" rather than the "label" > attribute, I'm not even sure whether it will accept OGNL: > > <s:textfield key="blabla"/> > > > -- > Ian Roughley > From Down & Around, Inc. > Consulting * Training / Mentoring * Agile Process * Open Source > web: http://www.fdar.com - email: [EMAIL PROTECTED] > > > > Angel Gruev wrote: > > Hello > > > > I have read the guide for internationalization but still I cannot get it > > running. > > 1. I have a property file with internationalization data called " > > ApplicationResources.properties" (used for the old struts 1 applicaiton) > > There is a line "blabla = test" > > > > 2. In the struts.properties file I have added: > > struts.i18n.reload = true > > struts.custom.i18n.resources=ApplicationResources.properties > > > > 3. In the action configuraion i have added : > > <interceptor-ref name="defaultStack" /> (this stack contains the > i18n > > interceptor> > > > > 4. In the jsp I have added: > > <s:textfield label="%{getText('blabla')}"/> > > > > The result is "blabla" , not "test" as expected. > > > > Any ideas ? > > > > Angel Gruev > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >