oalexeev 01/12/06 10:08:40
Modified: doc struts-bean.xml
Log:
Place additional comments for format abilities of th bean:write tag.
Revision Changes Path
1.7 +11 -2 jakarta-struts/doc/struts-bean.xml
Index: struts-bean.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/doc/struts-bean.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- struts-bean.xml 2001/11/21 18:50:22 1.6
+++ struts-bean.xml 2001/12/06 18:08:40 1.7
@@ -1002,8 +1002,17 @@
<td>java.sql.Time</td>
</tr>
</table>
- <p>If nothing found, then will be used format string according to current
- value data type and locale (object stored as session scope bean).</p>
+ <p>If nothing found, then toString() method for target object will be
called.</p>
+ <p>Default format strings in resources can be written as - <br />
+ <pre>
+ org.apache.struts.taglib.bean.format.int=######
+ org.apache.struts.taglib.bean.format.float=######,####
+ org.apache.struts.taglib.bean.format.timestamp=hh 'o''clock' a, zzzz
+ org.apache.struts.taglib.bean.format.date=EEE, MMM d, ''yy
+ org.apache.struts.taglib.bean.format.time=h:mm a
+ </pre>
+ <br />values for resource file entries are standart Java format strings for
+ date, time and number values.</p>
</info>
</attribute>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>