Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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
xml
xml
<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

  1. http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html
  2. http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html