tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kin...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler JspParseEventListener.java
Date Fri, 02 Nov 2001 19:36:09 GMT
kinman      01/11/02 11:36:09

  Modified:    jasper/src/share/org/apache/jasper/compiler
                        JspParseEventListener.java
  Log:
  PR: 4550
  
  Fixed a bug involving multiple import attributes in page directives.
  
  Revision  Changes    Path
  1.35      +7 -4      jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java
  
  Index: JspParseEventListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- JspParseEventListener.java	2001/10/03 21:48:30	1.34
  +++ JspParseEventListener.java	2001/11/02 19:36:09	1.35
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
1.34 2001/10/03 21:48:30 kinman Exp $
  - * $Revision: 1.34 $
  - * $Date: 2001/10/03 21:48:30 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
1.35 2001/11/02 19:36:09 kinman Exp $
  + * $Revision: 1.35 $
  + * $Date: 2001/11/02 19:36:09 $
    *
    * ====================================================================
    *
  @@ -736,7 +736,10 @@
                   for(int i = 0; i < pdhis.length; i++) {
                       PageDirectiveHandlerInfo pdhi = pdhis[i];
                       if (attr.equals(pdhi.attribute)) {
  -                        String value = (String) attrs.getValue(pdhi.attribute);
  +			// Retrieve the attribute keyed by index, not by name,
  +			// to handle page directives, where multiple import
  +			// attributes may be specified
  +			String value = attrs.getValue(j);
                           pdhi.handler.handlePageDirectiveAttribute(this, value,
                                                                     start, stop);
                       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message