struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-struts/doc/userGuide struts-bean.xml struts-logic.xml
Date Sat, 10 May 2003 18:39:47 GMT
dgraham     2003/05/10 11:39:47

  Modified:    doc/userGuide struts-bean.xml struts-logic.xml
  Log:
  Added notes about equivalent JSTL tags.
  
  Revision  Changes    Path
  1.12      +10 -0     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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- struts-bean.xml	30 Mar 2003 17:01:18 -0000	1.11
  +++ struts-bean.xml	10 May 2003 18:39:47 -0000	1.12
  @@ -470,6 +470,16 @@
       <p>The message key may be specified directly, using the <code>key</code>
       attribute, or indirectly, using the <code>name</code> and
       <code>property</code> attributes to obtain it from a bean.</p>
  +    
  +    <p>
  +    <strong>JSTL</strong>:  The equivalent JSTL tag is &lt;fmt:message&gt;.
 For example,
  +    <br/>
  +    <code>
  +    	&lt;fmt:message key="my.msg.key"&gt;
  +    	  &lt;fmt:param value="replacement text"/&gt;
  +    	&lt;/fmt:message&gt;
  +    </code>
  +    </p>
       </info>
   
       <attribute>
  
  
  
  1.14      +22 -0     jakarta-struts/doc/userGuide/struts-logic.xml
  
  Index: struts-logic.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-logic.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- struts-logic.xml	9 Apr 2003 01:54:39 -0000	1.13
  +++ struts-logic.xml	10 May 2003 18:39:47 -0000	1.14
  @@ -83,6 +83,17 @@
       <code>java.lang.String</code> with a length of zero), or an empty
       <code>java.util.Collection</code> or <code>java.util.Map</code>
(tested by
       the .isEmpty() method on the respective interface).</p>
  +    
  +    <p>
  +    <strong>JSTL</strong>:  The equivalent JSTL tag is &lt;c:if&gt;
using the 
  +    <code>empty</code> operator.  For example,
  +    <br/>
  +    <code>
  +    	&lt;c:if test="${empty sessionScope.myBean.myProperty}"&gt;
  +    	  do something
  +    	&lt;/c:if&gt;
  +    </code>
  +    </p>
       </info>
   
       <attribute>
  @@ -1022,6 +1033,17 @@
       <p>This tag evaluates its nested body content only if the specified value
       is present (i.e. not <code>null</code>) and is not an empty string (i.e.
a
       <code>java.lang.String</code> with a length of zero).</p>
  +    
  +    <p>
  +    <strong>JSTL</strong>:  The equivalent JSTL tag is &lt;c:if&gt;
using the 
  +    <code>! empty</code> operator.  For example,
  +    <br/>
  +    <code>
  +    	&lt;c:if test="${ ! empty sessionScope.myBean.myProperty}"&gt;
  +    	  do something
  +    	&lt;/c:if&gt;
  +    </code>
  +    </p>
       </info>
   
       <attribute>
  
  
  

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


Mime
View raw message