Note |
---|
Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. |
Description
Wiki Markup |
---|
{snippet:id=javadoc|javadoc=true|url=comorg.opensymphonyapache.webworkstruts2.components.Text} |
Parameters
Wiki Markup |
---|
{snippet:id=tagattributes|javadoc=false|url=webworkstruts2/docs/tags/Text.html} |
Examples
Wiki Markup |
---|
{snippet:id=exdescription|lang=none|javadoc=true|url=comorg.opensymphonyapache.webworkstruts2.components.Text} |
Wiki Markup |
---|
{snippet:id=example|lang=xml|javadoc=true|url=comorg.opensymphonyapache.webworkstruts2.components.Text} |
Other example
Code Block |
---|
|
<ww<s:text name="format.money"><ww><s:param name="value" value="myMoneyValue"/></wws:text>
|
where
Code Block |
---|
format.money={0,number,currency}
|
For documentation on possibilities for more about formatting text, see
- 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