You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by pi...@apache.org on 2005/02/17 01:49:39 UTC

cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/functions Functions.java

pierred     2005/02/16 16:49:39

  Modified:    standard/src/org/apache/taglibs/standard/functions
                        Functions.java
  Log:
  Patch from Dhiru Pandey for bug #32896
  The fix is simple and proposed by the submitter of the bug Rastislav Rehak
  <ra...@griddlers.net>
  -----
  Patch from Dhiru Pandey for bug #33300
  Fixed the error message.
  
  Revision  Changes    Path
  1.10      +2 -2      jakarta-taglibs/standard/src/org/apache/taglibs/standard/functions/Functions.java
  
  Index: Functions.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/functions/Functions.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Functions.java	16 Aug 2004 21:38:28 -0000	1.9
  +++ Functions.java	17 Feb 2005 00:49:39 -0000	1.10
  @@ -83,7 +83,7 @@
       public static boolean endsWith(String input, String substring) {
           if (input == null) input = "";
           if (substring == null) substring = "";
  -        int index = input.indexOf(substring);
  +        int index = input.lastIndexOf(substring);
           if (index == -1) return false;
           if (index == 0 && substring.length() == 0) return true;
           return (index == input.length() - substring.length());
  @@ -216,7 +216,7 @@
               count = Array.getLength(obj);
               return count;
           } catch (IllegalArgumentException ex) {}
  -        throw new JspTagException(Resources.getMessage("FOREACH_BAD_ITEMS"));        
  +        throw new JspTagException(Resources.getMessage("PARAM_BAD_VALUE"));        
       }      
   
       public static String join(String[] array, String separator) {
  
  
  

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