You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2002/08/03 20:20:04 UTC

cvs commit: jakarta-struts/doc/userGuide struts-bean.xml

craigmcc    2002/08/03 11:20:04

  Modified:    doc/stylesheets userGuide.xsl
               doc/userGuide struts-bean.xml
  Log:
  Enhance the stylesheet producing tag library documentation to recognize a
  <default> element that describes the default value if an attribute is not
  specified.  Go through the struts-bean.xml document and use the new feature.
  
  PR: 11388
  Submitted by:	David M. Karr <dmkarr at earthlink.net>
  
  Revision  Changes    Path
  1.7       +6 -3      jakarta-struts/doc/stylesheets/userGuide.xsl
  
  Index: userGuide.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/stylesheets/userGuide.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- userGuide.xsl	3 Aug 2002 17:45:47 -0000	1.6
  +++ userGuide.xsl	3 Aug 2002 18:20:03 -0000	1.7
  @@ -254,11 +254,14 @@
                   <xsl:variable name="required">
                     <xsl:value-of select="required"/>
                   </xsl:variable>
  +                <xsl:if test="default">
  +                  [<xsl:value-of select="default"/>]
  +                </xsl:if>
                   <xsl:if test="required='true'">
  -                  [Required]
  +                  (REQUIRED)
                   </xsl:if>
                   <xsl:if test="rtexprvalue='true'">
  -                  [RT Expr]
  +                  (RT EXPR)
                   </xsl:if>
                 </td>
               </tr>
  
  
  
  1.5       +20 -20    jakarta-struts/doc/userGuide/struts-bean.xml
  
  Index: struts-bean.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-bean.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- struts-bean.xml	7 Jul 2002 02:24:24 -0000	1.4
  +++ struts-bean.xml	3 Aug 2002 18:20:03 -0000	1.5
  @@ -238,11 +238,13 @@
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
         <info>
  -      <p>Specifies the fully qualified class name of the value to be exposed
  -      as the <code>id</code> attribute.  If not specified, the default type
  -      is <code>java.lang.String</code> (if you specify a <code>value</code>
  -      attribute), or <code>java.lang.Object</code> otherwise.</p>
  +        <p>Specifies the fully qualified class name of the value to be exposed
  +        as the <code>id</code> attribute.</p>
         </info>
  +      <default>
  +        <code>java.lang.String</code> (if you specify a <code>value</code>
  +        attribute) or <code>java.lang.Object</code> otherwise.
  +      </default>
       </attribute>
   
       <attribute>
  @@ -522,9 +524,9 @@
         <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>
  +      is stored.</p>
         </info>
  +      <default>Action.MESSAGES_KEY</default>
       </attribute>
   
       <attribute>
  @@ -545,10 +547,9 @@
         <rtexprvalue>true</rtexprvalue>
         <info>
         <p>The name of the session scope bean under which our currently
  -      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>
  +      selected <code>Locale</code> object is stored.</p>
         </info>
  +      <default>Action.LOCALE_KEY</default>
       </attribute>
   
       <attribute>
  @@ -941,9 +942,9 @@
         <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>
  +      is stored.</p>
         </info>
  +      <default>Action.MESSAGES_KEY</default>
       </attribute>
   
       <attribute>
  @@ -953,10 +954,9 @@
         <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>
  +      such characters will be replaced by their entity equivalents.</p>
         </info>
  +      <default>true</default>
       </attribute>
   
       <attribute>
  @@ -1031,10 +1031,11 @@
         <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,
  +      exist, simply return without writing anything.  If this attribute is
  +      set to <code>false</code>, a runtime exception to be thrown,
         consistent with the other tags in this tag library.</p>
         </info>
  +      <default>false</default>
       </attribute>
   
       <attribute>
  @@ -1042,11 +1043,10 @@
         <required>false</required>
         <rtexprvalue>true</rtexprvalue>
         <info>
  -      <p>The name of the session scope bean under which our currently
  -      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>
  +        <p>The name of the session scope bean under which our currently
  +        selected <code>Locale</code> object is stored.</p>
         </info>
  +      <default>Action.LOCALE_KEY</default>
       </attribute>
   
       <attribute>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>