You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dg...@apache.org on 2003/05/10 20:39:47 UTC
cvs commit: jakarta-struts/doc/userGuide struts-bean.xml struts-logic.xml
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 <fmt:message>. For example,
+ <br/>
+ <code>
+ <fmt:message key="my.msg.key">
+ <fmt:param value="replacement text"/>
+ </fmt:message>
+ </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 <c:if> using the
+ <code>empty</code> operator. For example,
+ <br/>
+ <code>
+ <c:if test="${empty sessionScope.myBean.myProperty}">
+ do something
+ </c:if>
+ </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 <c:if> using the
+ <code>! empty</code> operator. For example,
+ <br/>
+ <code>
+ <c:if test="${ ! empty sessionScope.myBean.myProperty}">
+ do something
+ </c:if>
+ </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