tag + attribute" headerValue " Is it possible to get the value of the "headerValue" attribute in the "select" tag fro...">

Struts2 + <s: select / "> tag + attribute" headerValue "

Is it possible to get the value of the "headerValue" attribute in the "select" tag from the resource bundle if I use internationalization?

What are other possible options?

BR SC

+3
source share
1 answer

Yes you can ... hope you already have a properties file ...

In the properties file

propertyKey=List Header Value

Call it in the tag as follows:

<s:select list="itemList" headerKey="0" headerValue="%{getText('propertyKey')}"/>

Hope this helps ....

+10
source

Source: https://habr.com/ru/post/1785886/


All Articles