In the jsp im localizing using this... <s:text name="%{getText('customer.registration.registrationEnd.message')}"/>
I think you are right "getText" depends on ActionSupport but im not pass throw an acttion.........how could i do to get i18n work properly when i call a jsp throw an struts action that has no Action class itself Regards, juan -----Mensaje original----- De: news [mailto:[EMAIL PROTECTED] En nombre de Laurie Harper Enviado el: viernes, 16 de febrero de 2007 2:14 Para: user@struts.apache.org Asunto: Re: I18N Problems Juan Espinosa wrote: > Hi to all, i need some help with a intenationalization. I have a file > named package.properties in the folder where i have located the actions. > The localization is not working in actionerrors, i have the following > code in the action: > > addActionError("myapplication.registration.error.userNameNotFound") Assuming you're extending ActionSupport: addActionError(getText("myapplication.registration.error.userNameNotFound")) ; addActionError takes the litteral error text, so you need to do the resource bundle lookup explicitly. > I dont know why this code is not working, i have an entry > "myapplication.registration.error.userNameNotFound" in > package.properties but this thing doesnt work > > Another thing that does not work is this > > i have this action to call a jsp (i dont want to call it directly) > > <action name="viewCustomerLogin"> > <result>/private/customer/security/login.jsp</result> > </action> > > in this case the localization also does not work, alsto i tried to put > the I18N interceptor <interceptor-ref name="i18n"/> but no way > > but if i call the jsp throw a real action the localization works... > > <action name="viewCustomerLogin" method="viewCustomerLogin" > class="uy.com.MyActionClass"> > <result>/private/customer/security/login.jsp</result> > </action> I don't know how you're trying to localize that JSP, but my guess would be that you're depending on action functionality which, if you don't specify an action, wont be there. L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 14/02/2007 16:17 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.0/689 - Release Date: 15/02/2007 17:40 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]