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]

Reply via email to