tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java
Date Fri, 02 Aug 2002 01:31:09 GMT
luehe       2002/08/01 18:31:08

  Modified:    jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  Added package declaration to generated tag handler file
  
  Revision  Changes    Path
  1.57      +11 -3     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.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- Generator.java	1 Aug 2002 22:44:54 -0000	1.56
  +++ Generator.java	2 Aug 2002 01:31:08 -0000	1.57
  @@ -2753,6 +2753,14 @@
       private void generateTagHandlerPreamble(TagInfo tagInfo)
   	    throws JasperException {
   
  +	// Generate package declaration
  +	String className = tagInfo.getTagClassName();
  +	String pkgName = className.substring(0, className.lastIndexOf("."));
  +	out.printin("package ");
  +	out.print(pkgName);
  +	out.println(";");
  +	out.println();
  +
   	// Generate class declaration
   	out.printin("public class ");
   	out.print(tagInfo.getTagName());
  
  
  

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