アウトプットができる技術者に

it's a time to take a new step !

Struts2 入門 Localization UI Tag

Localization = 国際化対応の話
text Tag で properteis ファイルにある文字列を出力できる

jsp

<s:text name="menu" />

package.propreties

menu=menu_jp
引数を利用して format することも可能

jsp

<s:text name="format.number_money">
    <s:param name="value" value="sumValue"/>
</s:text>

package.properties

format.number_money={0,number,#,##0}

結果

2,270,000


global_message.properties てなんだっけ。。