I have 3 language files idioma_CA.properties idioma_EN.properties idioma_ES.properties in the package "idiomas" and one default idioma.properties.
struts.properties has this properties:
hibernatePlugin.configurationType=annotation
struts.custom.i18n.resources = idiomas/idiomaSo everytime I try to change the language struts2 ignores me and get always the text from the default properties at J开发者_开发知识库SP's. But using "getText" at execute method of my Action I get that NullPointerException whatever locale i have at request_locale.
Can someone tell me what am i doing wrong?
Thank you very much
I solved the problem.
The localization letters after "idioma_" must be lowercase like "idioma_ca.properties"
精彩评论