Struts Dojo Internationalization of values

删除回忆录丶 提交于 2020-01-06 18:00:46

问题


Is it possible to implement internationalization for Struts Dojo Tags?

For example:

I have this struts dojo submit tag:

<sx:submit cssClass="styled_button" targets="myDiv" value="close"/>

I want the [value="close"] to point to my properties file so that I can implement internationalization.

Is this possible with struts dojo?


回答1:


You can use dojo tag attribute key to get your locale value

<sx:submit cssClass = "styled_button" 
               name = "ss" 
            targets = "myDiv" 
                key = "yourKey" 
               name = "anyName" />

and yourKey will be property file you have mentioned in your struts.xml



来源:https://stackoverflow.com/questions/32447970/struts-dojo-internationalization-of-values

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!