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-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java
Date Wed, 21 Aug 2002 18:07:59 GMT
kinman      2002/08/21 11:07:59

  Modified:    jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  - Fixed bug 11883: Unable to use Dynamic attributes.  Patched by Mark Roth
  
  Revision  Changes    Path
  1.75      +12 -6     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- Generator.java	21 Aug 2002 16:21:56 -0000	1.74
  +++ Generator.java	21 Aug 2002 18:07:59 -0000	1.75
  @@ -2459,9 +2459,15 @@
   		if (attrs[i].isDynamic()) {
   		    out.printin(tagHandlerVar);
   		    out.print(".");
  -		    out.print("setDynamicAttribute(\"");
  -		    out.print(attrs[i].getURI());
  -		    out.print("\", \"");
  +		    out.print("setDynamicAttribute(");
  +                    String uri = attrs[i].getURI();
  +                    if( "".equals( uri ) || (uri == null) ) {
  +                        out.print( "null" );
  +                    }
  +                    else {
  +                        out.print("\"" + attrs[i].getURI() + "\"");
  +                    }
  +		    out.print(", \"");
   		    out.print(attrs[i].getLocalName());
   		    out.print("\", ");
   		    out.print(attrValue);
  
  
  

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