luehe 2003/03/26 17:52:55 Modified: jasper2/src/share/org/apache/jasper/compiler PageDataImpl.java Log: renamed 'type' into 'qName' Revision Changes Path 1.27 +7 -7 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java Index: PageDataImpl.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- PageDataImpl.java 27 Mar 2003 01:36:18 -0000 1.26 +++ PageDataImpl.java 27 Mar 2003 01:52:55 -0000 1.27 @@ -186,21 +186,21 @@ public void visit(Node.TaglibDirective n) throws JasperException { Attributes attrs = n.getAttributes(); if (attrs != null) { - String type = "xmlns:" + attrs.getValue("prefix"); + String qName = "xmlns:" + attrs.getValue("prefix"); /* * According to javadocs of org.xml.sax.helpers.AttributesImpl, * the addAttribute method does not check to see if the * specified attribute is already contained in the list: This * is the application's responsibility! */ - if (rootAttrs.getIndex(type) == -1) { + if (rootAttrs.getIndex(qName) == -1) { String location = attrs.getValue("uri"); if (location != null) { - rootAttrs.addAttribute("", "", type, "CDATA", + rootAttrs.addAttribute("", "", qName, "CDATA", location); } else { location = attrs.getValue("tagdir"); - rootAttrs.addAttribute("", "", type, "CDATA", + rootAttrs.addAttribute("", "", qName, "CDATA", URN_JSPTAGDIR + location); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]