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

2004-02-19 Thread rleland
rleland 2004/02/19 14:54:10

  Modified:doc/userGuide struts-logic.xml
  Log:
  Fix wording of lessEqual tag.
  
  Submitted by Matt Bathje
  
  Revision  ChangesPath
  1.21  +1 -1  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.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- struts-logic.xml  1 Feb 2004 16:15:07 -   1.20
  +++ struts-logic.xml  19 Feb 2004 22:54:10 -  1.21
  @@ -619,7 +619,7 @@
   namelessEqual/name
   summary
   Evaluate the nested body content of this tag if the requested
  -variable is greater than or equal to the specified value.
  +variable is less than or equal to the specified value.
   /summary
   tagclassorg.apache.struts.taglib.logic.LessEqualTag/tagclass
   bodycontentJSP/bodycontent
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2002-10-13 Thread martinc

martinc 2002/10/12 12:19:18

  Modified:src/share/org/apache/struts/taglib/logic EmptyTag.java
   doc/userGuide struts-logic.xml
  Log:
  Add support for Map to logic:empty and logic:notEmpty tags.
  
  PR: 13569
  Submitted by: Robert Rasmussen - thanks for the patch.
  
  Revision  ChangesPath
  1.4   +8 -4  
jakarta-struts/src/share/org/apache/struts/taglib/logic/EmptyTag.java
  
  Index: EmptyTag.java
  ===
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/logic/EmptyTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EmptyTag.java 25 Jun 2002 00:53:41 -  1.3
  +++ EmptyTag.java 12 Oct 2002 19:19:18 -  1.4
  @@ -63,6 +63,7 @@
   package org.apache.struts.taglib.logic;
   
   import java.util.Collection;
  +import java.util.Map;
   import javax.servlet.jsp.JspException;
   import org.apache.struts.util.RequestUtils;
   
  @@ -121,6 +122,9 @@
   } else if (value instanceof Collection) {
   Collection collValue = (Collection)value;
   empty = collValue.isEmpty();
  +} else if (value instanceof Map) {
  +Map mapValue = (Map)value;
  +empty = mapValue.isEmpty();
   } else {
   empty = false;
   }
  
  
  
  1.7   +3 -2  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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- struts-logic.xml  3 Aug 2002 18:43:40 -   1.6
  +++ struts-logic.xml  12 Oct 2002 19:19:18 -  1.7
  @@ -80,8 +80,9 @@
   info
   pThis tag evaluates its nested body content only if the specified value
   is either absent (i.e. codenull/code), an empty string (i.e. a
  -codejava.lang.String/code with a length of zero) or an empty 
java.util.Collection
  -(tested by the .isEmpty() method on the java.util.Collection interface)./p
  +codejava.lang.String/code with a length of zero), or an empty
  +codejava.util.Collection/code or codejava.util.Map/code (tested by
  +the .isEmpty() method on the respective interface)./p
   /info
   
   attribute
  
  
  

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-05-12 Thread arron

arron   02/05/12 19:54:28

  Modified:doc/userGuide struts-logic.xml
  Log:
  Docco for bug fix 7313.
  
  Revision  ChangesPath
  1.5   +5 -3  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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- struts-logic.xml  22 Apr 2002 19:48:13 -  1.4
  +++ struts-logic.xml  13 May 2002 02:54:28 -  1.5
  @@ -78,8 +78,9 @@
   bodycontentJSP/bodycontent
   info
   p[Since 1.1] This tag evaluates its nested body content only if the specified 
value
  -is either absent (i.e. codenull/code) or an empty string (i.e. a
  -codejava.lang.String/code with a length of zero)./p
  +is either absent (i.e. codenull/code), an empty string (i.e. a
  +codejava.lang.String/code with a length of zero) or an empty 
java.util.Collection
  +(tested by the .isEmpty() method on the java.util.Collection interface)./p
   /info
   
   attribute
  @@ -1005,7 +1006,8 @@
   namenotEmpty/name
   summary
   Evaluate the nested body content of this tag if the requested variable is
  -neither codenull/code nor an empty string.
  +neither codenull/code, nor an empty string, nor an empty 
java.util.Collection
  +(tested by the .isEmpty() method on the java.util.Collection interface).
   /summary
   tagclassorg.apache.struts.taglib.logic.NotEmptyTag/tagclass
   bodycontentJSP/bodycontent
  
  
  

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




cvs commit: jakarta-struts/doc/userGuide struts-logic.xml taglib_struts-logic-ref.xml

2002-04-22 Thread rleland

rleland 02/04/22 12:48:13

  Modified:doc/userGuide struts-logic.xml taglib_struts-logic-ref.xml
  Log:
  Move over new tag documentation, plus correct spelling.
  
  Revision  ChangesPath
  1.4   +2 -4  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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- struts-logic.xml  22 Apr 2002 19:25:52 -  1.3
  +++ struts-logic.xml  22 Apr 2002 19:48:13 -  1.4
  @@ -452,7 +452,8 @@
   
   pThe collection to be iterated over MUST conform to one of the following
   requirements in order for iteration to be successful:/p
  -ulliAn array of Java objects or primitves./li
  +ul
  +liAn array of Java objects or primitives./li
   
   liAn implementation of codejava.util.Collection/code, including
   codeArrayList/code and codeVector/code./li
  @@ -488,9 +489,6 @@
   iteration.  You can use the codelt;logic:presentgt;/code and
   codelt;logic:notPresentgt;/code tags to test for this case./p
   
  -pstrongWARNING/strong - Currently, this tag cannot deal with
  -arrays of primitive data types.  Only arrays of Java objects (including
  -Strings) are supported./p
   /info
   
   attribute
  
  
  
  1.3   +120 -7jakarta-struts/doc/userGuide/taglib_struts-logic-ref.xml
  
  Index: taglib_struts-logic-ref.xml
  ===
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/taglib_struts-logic-ref.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- taglib_struts-logic-ref.xml   22 Apr 2002 19:25:52 -  1.2
  +++ taglib_struts-logic-ref.xml   22 Apr 2002 19:48:13 -  1.3
  @@ -33,8 +33,8 @@
 codename/code, codeparameter/code, codeproperty/code)
 present on this tag.  It will be converted to the appropriate type
 for the comparison, as determined above./li
  -  liA request time exception will be thrown if the specified variable
  -  cannot be retrieved, or has a null value./li
  +  liIf the specified variable or property returns null, it will be
  +  coerced to a zero-length string before the comparison occurs./li
 liThe specific comparison for this tag will be performed, and the nested
 body content of this tag will be evaluated if the comparison returns
 a codetrue/code result./li
  @@ -453,7 +453,7 @@
   pThe collection to be iterated over MUST conform to one of the following
   requirements in order for iteration to be successful:/p
   ul
  -liAn array of Java objects or primitves./li
  +liAn array of Java objects or primitives./li
   
   liAn implementation of codejava.util.Collection/code, including
   codeArrayList/code and codeVector/code./li
  @@ -887,6 +887,118 @@
   
 /tag
   
  +  tag
  +
  +namemessagesNotPresent/name
  +summary
  +Generate the nested body content of this tag if the specified
  +message is not present in this request.
  +/summary
  +tagclassorg.apache.struts.taglib.logic.MessagesNotPresentTag/tagclass
  +bodycontentJSP/bodycontent
  +info
  +pEvaluates the nested body content of this tag if 
  +   an codeActionMessages/code
  +   object, codeActionErrors/code object, a String,
  +   or a String array is not in request scope.  If
  +   such a bean is not found, nothing will be rendered.
  +/p
  +/info
  +
  +attribute
  +  namename/name
  +  requiredfalse/required
  +  rtexprvaluetrue/rtexprvalue
  +  info
  +  pThe parameter key to retrieve the message from request scope./p
  +  /info
  +/attribute
  +
  +attribute
  +  nameproperty/name
  +  requiredfalse/required
  +  rtexprvaluetrue/rtexprvalue
  +  info
  +  pName of the property for which messages should be
  + retrieved.  If not specified, all messages (regardless
  + of property) are retrieved.
  +  /p
  +  /info
  +/attribute
  +
  +attribute
  +  namemessage/name
  +  requiredfalse/required
  +  rtexprvaluetrue/rtexprvalue
  +  info
  +  pBy default the tag will retrieve the request scope bean it will
  + iterate over from the codeAction.ERROR_KEY/code constant string,
  + but if this attribute is set to 'true' the request scope bean
  + will be retrieved from the codeAction.MESSAGE_KEY/code
  + constant string.  Also if this is set to 'true', any value
  + assigned to the name attribute will be ignored.
  +  /p
  +  /info
  +/attribute
  +
  +  /tag
  +
  +  tag
  +
  +namemessagesPresent/name
  +summary
  +Generate the nested body content of this tag if the specified
  +

cvs commit: jakarta-struts/doc/userGuide struts-logic.xml taglib_struts-logic-ref.xml

2002-04-22 Thread rleland

rleland 02/04/22 12:25:53

  Modified:doc/userGuide struts-logic.xml taglib_struts-logic-ref.xml
  Log:
  Bug#7250
  Update Iterate Docs for primative types
  Contributed by [EMAIL PROTECTED]
  
  Revision  ChangesPath
  1.3   +2 -3  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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- struts-logic.xml  16 Mar 2002 03:00:44 -  1.2
  +++ struts-logic.xml  22 Apr 2002 19:25:52 -  1.3
  @@ -452,9 +452,8 @@
   
   pThe collection to be iterated over MUST conform to one of the following
   requirements in order for iteration to be successful:/p
  -ul
  -liAn array of Java objects (but not primitive data types such as
  -int)/li
  +ulliAn array of Java objects or primitves./li
  +
   liAn implementation of codejava.util.Collection/code, including
   codeArrayList/code and codeVector/code./li
   liAn implementation of codejava.util.Enumeration/code./li
  
  
  
  1.2   +2 -5  jakarta-struts/doc/userGuide/taglib_struts-logic-ref.xml
  
  Index: taglib_struts-logic-ref.xml
  ===
  RCS file: /home/cvs/jakarta-struts/doc/userGuide/taglib_struts-logic-ref.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- taglib_struts-logic-ref.xml   17 Sep 2001 19:57:36 -  1.1
  +++ taglib_struts-logic-ref.xml   22 Apr 2002 19:25:52 -  1.2
  @@ -453,8 +453,8 @@
   pThe collection to be iterated over MUST conform to one of the following
   requirements in order for iteration to be successful:/p
   ul
  -liAn array of Java objects (but not primitive data types such as
  -int)/li
  +liAn array of Java objects or primitves./li
  +
   liAn implementation of codejava.util.Collection/code, including
   codeArrayList/code and codeVector/code./li
   liAn implementation of codejava.util.Enumeration/code./li
  @@ -489,9 +489,6 @@
   iteration.  You can use the codelt;logic:presentgt;/code and
   codelt;logic:notPresentgt;/code tags to test for this case./p
   
  -pstrongWARNING/strong - Currently, this tag cannot deal with
  -arrays of primitive data types.  Only arrays of Java objects (including
  -Strings) are supported./p
   /info
   
   attribute
  
  
  

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]