...
- http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html
- http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html
If you wish to use i18n in your tag attributes
This will not work:
Code Block | ||||
---|---|---|---|---|
| ||||
<s:textfield name="lastName" label="<s:text name="person.lastName"/>" ../>
|
Instead, you should use the getText() method that you inherit when your Action extends XWork's ActionSupport:
Code Block | ||||
---|---|---|---|---|
| ||||
<s:textfield name="lastName" label="getText('person.lastName')" ../>
|