tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From man...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler IncludeGenerator.java
Date Sun, 17 Oct 1999 18:40:08 GMT
mandar      99/10/17 11:40:07

  Modified:    src/share/org/apache/jasper/compiler IncludeGenerator.java
  Log:
  spec compliance:
  
   params in jsp:include to be taken out after return from the include.
  
  Revision  Changes    Path
  1.2       +13 -4     jakarta-tomcat/src/share/org/apache/jasper/compiler/IncludeGenerator.java
  
  Index: IncludeGenerator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/IncludeGenerator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IncludeGenerator.java	1999/10/09 00:20:36	1.1
  +++ IncludeGenerator.java	1999/10/17 18:40:06	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/IncludeGenerator.java,v
1.1 1999/10/09 00:20:36 duncan Exp $
  - * $Revision: 1.1 $
  - * $Date: 1999/10/09 00:20:36 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/IncludeGenerator.java,v
1.2 1999/10/17 18:40:06 mandar Exp $
  + * $Revision: 1.2 $
  + * $Date: 1999/10/17 18:40:06 $
    *
    * ====================================================================
    * 
  @@ -148,6 +148,15 @@
   	    writer.println ("pageContext.include(" +
   			    JspUtil.getExpr(page) +
   			    ");");
  -			    
  +
  +	// Now remove the parameters that were meant only for the inclusion.
  +	if (params.size() > 0) {
  +	    Enumeration en = params.keys();
  +	    while (en.hasMoreElements()) {
  +		String key = (String) en.nextElement();
  +		writer.println("request.removeAttribute(\"" + key + "\");");
  +	    }
  +	}
  +	
       }
   }
  
  
  

Mime
View raw message