Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change 
notification.

The "ValidatorTool" page has been changed by newacct.
http://wiki.apache.org/struts/ValidatorTool?action=diff&rev1=3&rev2=4

--------------------------------------------------

           StringBuffer sb = new StringBuffer(); 
           String name = 
               formName.substring(0, 1).toUpperCase() 
-                  + formName.substring(1, formName.length()); 
+                  + formName.substring(1); 
  
           sb.append(this.getStartElement()); 
  
@@ -731, +731 @@

  
               if (c <= 'z') { 
                   if (i == 0) { 
-                      return c + input.substring(pos, input.length()); 
+                      return c + input.substring(pos); 
                   } else if (i == input.length()) { 
                       return input.substring(0, pos) + c; 
                   } else { 
@@ -753, +753 @@

        */ 
       private String replaceChar(String input, int pos, char c) { 
           if (pos == 0) { 
-              return c + input.substring(pos, input.length()); 
+              return c + input.substring(pos); 
           } else if (pos == input.length()) { 
               return input.substring(0, pos) + c; 
           } else { 

Reply via email to