Struts Dojo Internationalization of values

2019-08-26 19:48发布

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条回答
在下西门庆
2楼-- · 2019-08-26 20:16

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

查看更多
登录 后发表回答