You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ma...@apache.org on 2004/12/27 20:47:12 UTC

svn commit: r123444 - /struts/core/trunk/doc/userGuide/struts-bean.xml

Author: martinc
Date: Mon Dec 27 11:47:11 2004
New Revision: 123444

URL: http://svn.apache.org/viewcvs?view=rev&rev=123444
Log:
Bug #32504: Document the means used to format values in the <bean:write> tag.
Modified:
   struts/core/trunk/doc/userGuide/struts-bean.xml

Modified: struts/core/trunk/doc/userGuide/struts-bean.xml
Url: http://svn.apache.org/viewcvs/struts/core/trunk/doc/userGuide/struts-bean.xml?view=diff&rev=123444&p1=struts/core/trunk/doc/userGuide/struts-bean.xml&r1=123443&p2=struts/core/trunk/doc/userGuide/struts-bean.xml&r2=123444
==============================================================================
--- struts/core/trunk/doc/userGuide/struts-bean.xml	(original)
+++ struts/core/trunk/doc/userGuide/struts-bean.xml	Mon Dec 27 11:47:11 2004
@@ -956,7 +956,12 @@
      <code>getAsText()</code> method will be called.</li>
      <li>Otherwise, the usual <code>toString()</code> conversions will be applied.</li>
      </ul>
-
+    <p>When a format string is provided, numeric values are formatted using the
+    <code>java.text.DecimalFormat</code> class; if the format string came from
+    a resource, the <code>applyLocalisedPattern()</code> method is used, and
+    <code>applyPattern()</code> is used otherwise. Dates are formatted using
+    the <code>SimpleDateFormat</code> class. For details of the specific format
+    patterns, please see the Javadocs for those classes.</p>
     <p>If a problem occurs while retrieving the specified bean property, a
     request time exception will be thrown.</p>
     </info>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org