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 Validator.java
Date Mon, 08 Apr 2002 21:47:30 GMT
kinman      02/04/08 14:47:30

  Modified:    jasper2/src/share/org/apache/jasper/compiler Validator.java
  Log:
  - Make sure that visiBody is called for nodes that may have a body.
  
  Revision  Changes    Path
  1.2       +10 -3     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java
  
  Index: Validator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Validator.java	28 Mar 2002 18:46:17 -0000	1.1
  +++ Validator.java	8 Apr 2002 21:47:30 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java,v
1.1 2002/03/28 18:46:17 kinman Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/28 18:46:17 $
  + * $Header: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java,v
1.2 2002/04/08 21:47:30 kinman Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/04/08 21:47:30 $
    *
    * ====================================================================
    * 
  @@ -310,6 +310,7 @@
   	public void visit(Node.IncludeDirective n) throws JasperException {
   	    JspUtil.checkAttributes("Include directive", n.getAttributes(),
   				    includeDirectiveAttrs, n.getStart(), err);
  +	    visitBody(n);
   	}
   
   	public void visit(Node.TaglibDirective n) throws JasperException {
  @@ -329,6 +330,7 @@
   				    includeActionAttrs, n.getStart(), err);
   	    n.setPage(getJspAttribute("page", n.getAttributeValue("page"),
   				      n.isXmlSyntax()));
  +	    visitBody(n);
           };
   
   	public void visit(Node.ForwardAction n) throws JasperException {
  @@ -336,6 +338,7 @@
   				    forwardActionAttrs, n.getStart(), err);
   	    n.setPage(getJspAttribute("page", n.getAttributeValue("page"),
   				      n.isXmlSyntax()));
  +	    visitBody(n);
   	}
   
   	public void visit(Node.GetProperty n) throws JasperException {
  @@ -400,6 +403,8 @@
   		beanInfo.addApplicationBean(name,className);
   	    } else 
   		err.jspError(n, "jsp.error.useBean.badScope");
  +
  +	    visitBody(n);
   	}
   
   	public void visit(Node.PlugIn n) throws JasperException {
  @@ -413,6 +418,8 @@
   		err.jspError(n, "jsp.error.plugin.badtype");
   	    if (n.getAttributeValue("code") == null)
   		err.jspError(n, "jsp.error.plugin.nocode");
  +
  +	    visitBody(n);
   	}
   
   	public void visit(Node.CustomTag n) 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