tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler TagPluginManager.java
Date Wed, 01 Jan 2003 12:25:58 GMT
remm        2003/01/01 04:25:58

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        TagPluginManager.java
  Log:
  - To support nested tags, we should also visit child nodes.
  
  Revision  Changes    Path
  1.9       +13 -7     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagPluginManager.java
  
  Index: TagPluginManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagPluginManager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- TagPluginManager.java	6 Dec 2002 23:19:58 -0000	1.8
  +++ TagPluginManager.java	1 Jan 2003 12:25:58 -0000	1.9
  @@ -97,11 +97,17 @@
   	    return;
   	}
   
  -	page.visit(new Node.Visitor() {
  -            public void visit(Node.CustomTag n) {
  -		invokePlugin(n);
  +        page.visit(new Node.Visitor() {
  +            public void visit(Node.CustomTag n)
  +                throws JasperException {
  +                invokePlugin(n);
  +                Node.Nodes body = n.getBody();
  +                if (body != null) {
  +                    body.visit(this);
  +                }
               }
  -	});
  +        });
  +
       }
    
       private void init(ErrorDispatcher err) throws JasperException {
  
  
  

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