开发者

NullPointer getting internationalization text at LocalizedTextUtil

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/idioma

So 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"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜