oalexeev 01/12/17 03:10:30 Modified: doc struts-bean.xml Log: Add 'formatKey' attribute for bean:write tag. Revision Changes Path 1.9 +73 -59 jakarta-struts/doc/struts-bean.xml Index: struts-bean.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/struts-bean.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- struts-bean.xml 2001/12/12 14:10:03 1.8 +++ struts-bean.xml 2001/12/17 11:10:30 1.9 @@ -915,64 +915,27 @@ </info> <attribute> - <name>filter</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <info> - <p>If this attribute is set to <code>true</code>, the rendered property - value will be filtered for characters that are sensitive in HTML, and any - such characters will be replaced by their entity equivalents. By - default, filtering is performed - to disable it, you must explicitly - set this attribute to <code>false</code>.</p> - </info> - </attribute> - - <attribute> - <name>ignore</name> - <required>false</required> - <rtexprvalue>true</rtexprvalue> - <info> - <p>If this attribute is set to <code>true</code>, and the bean specified - by the <code>name</code> and <code>scope</code> attributes does not - exist, simply return without writing anything. The default value is - <code>false</code>, which will cause a runtime exception to be thrown, - consistent with the other tags in this tag library.</p> - </info> - </attribute> - - <attribute> - <name>name</name> - <required>true</required> - <rtexprvalue>true</rtexprvalue> - <info> - <p>Specifies the attribute name of the bean whose property is accessed - to retrieve the value specified by <code>property</code> (if - specified). If <code>property</code> is not specified, the value of - this bean itself will be rendered.</p> - </info> - </attribute> - - <attribute> - <name>property</name> + <name>bundle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <info> - <p>Specifies the name of the property to be accessed on the bean - specified by <code>name</code>. This value may be a simple, indexed, - or nested property reference expression. If not specified, the bean - identified by <code>name</code> will itself be rendered. If the - specified property returns null, no output will be rendered.</p> + <p>The name of the application scope bean under which the + <code>MessageResources</code> object containing our messages + is stored. If not specified, the default name (the value of + the <code>Action.MESSAGES_KEY</code> constant string) is used.</p> </info> </attribute> <attribute> - <name>scope</name> + <name>filter</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <info> - <p>Specifies the variable scope searched to retrieve the bean specified - by <code>name</code>. If not specified, the default rules applied by - <code>PageContext.findAttribute()</code> are applied.</p> + <p>If this attribute is set to <code>true</code>, the rendered property + value will be filtered for characters that are sensitive in HTML, and any + such characters will be replaced by their entity equivalents. By + default, filtering is performed - to disable it, you must explicitly + set this attribute to <code>false</code>.</p> </info> </attribute> @@ -1000,25 +963,30 @@ <td>java.lang.Float, java.lang.Double, java.math.BigDecimal</td> </tr> <tr> - <td>org.apache.struts.taglib.bean.format.timestamp</td> + <td>org.apache.struts.taglib.bean.format.sql.timestamp</td> <td>java.sql.Timestamp</td> </tr> <tr> - <td>org.apache.struts.taglib.bean.format.date</td> + <td>org.apache.struts.taglib.bean.format.sql.date</td> <td>java.sql.Date</td> </tr> <tr> - <td>org.apache.struts.taglib.bean.format.time</td> + <td>org.apache.struts.taglib.bean.format.sql.time</td> <td>java.sql.Time</td> </tr> + <tr> + <td>org.apache.struts.taglib.bean.format.date</td> + <td>java.util.Date</td> + </tr> </table> <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 + org.apache.struts.taglib.bean.format.sql.timestamp=hh 'o''clock' a, zzzz + org.apache.struts.taglib.bean.format.sql.date=EEE, MMM d, ''yy + org.apache.struts.taglib.bean.format.sql.time=h:mm a + org.apache.struts.taglib.bean.format.date=hh 'o''clock' a, zzzz </pre> <br />values for resource file entries are standart Java format strings for date, time and number values.</p> @@ -1026,18 +994,28 @@ </attribute> <attribute> - <name>bundle</name> + <name>formatKey</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <info> - <p>The name of the application scope bean under which the - <code>MessageResources</code> object containing our messages - is stored. If not specified, the default name (the value of - the <code>Action.MESSAGES_KEY</code> constant string) is used.</p> + <p>Specifies the key to search format string in application resources.</p> </info> </attribute> <attribute> + <name>ignore</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <info> + <p>If this attribute is set to <code>true</code>, and the bean specified + by the <code>name</code> and <code>scope</code> attributes does not + exist, simply return without writing anything. The default value is + <code>false</code>, which will cause a runtime exception to be thrown, + consistent with the other tags in this tag library.</p> + </info> + </attribute> + + <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> @@ -1046,6 +1024,42 @@ selected <code>Locale</code> object is stored. If not specified, the default name (the value of the <code>Action.LOCALE_KEY</code> constant string) is used.</p> + </info> + </attribute> + + <attribute> + <name>name</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <info> + <p>Specifies the attribute name of the bean whose property is accessed + to retrieve the value specified by <code>property</code> (if + specified). If <code>property</code> is not specified, the value of + this bean itself will be rendered.</p> + </info> + </attribute> + + <attribute> + <name>property</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <info> + <p>Specifies the name of the property to be accessed on the bean + specified by <code>name</code>. This value may be a simple, indexed, + or nested property reference expression. If not specified, the bean + identified by <code>name</code> will itself be rendered. If the + specified property returns null, no output will be rendered.</p> + </info> + </attribute> + + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>true</rtexprvalue> + <info> + <p>Specifies the variable scope searched to retrieve the bean specified + by <code>name</code>. If not specified, the default rules applied by + <code>PageContext.findAttribute()</code> are applied.</p> </info> </attribute>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>