struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html JavascriptValidatorTag.java
Date Sat, 14 Feb 2004 11:11:03 GMT
husted      2004/02/14 03:11:02

  Modified:    src/share/org/apache/struts/taglib/html
                        JavascriptValidatorTag.java
  Log:
  Apply #26782 "JavaScriptValidatorTag produces invalid JavaScript function name when form
is subclass of ValidatorActionForm" submitted by jbelew2002.
  
  Revision  Changes    Path
  1.46      +6 -5      jakarta-struts/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
  
  Index: JavascriptValidatorTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- JavascriptValidatorTag.java	4 Feb 2004 17:12:01 -0000	1.45
  +++ JavascriptValidatorTag.java	14 Feb 2004 11:11:02 -0000	1.46
  @@ -677,7 +677,8 @@
        */
       protected String getJavascriptBegin(String methods) {
           StringBuffer sb = new StringBuffer();
  -        String name =
  +        String name = formName.replace('/', '_'); // remove any '/' characters
  +        name =
               formName.substring(0, 1).toUpperCase()
                   + formName.substring(1, formName.length());
   
  
  
  

---------------------------------------------------------------------
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