tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler JspCompiler.java
Date Fri, 05 Nov 1999 00:10:34 GMT
akv         99/11/04 16:10:30

  Modified:    src/share/org/apache/jasper/compiler Tag:
                        TOMCAT_J2EE_10F_102199 JspCompiler.java
  Log:
  Fixed bug pointed out by gonzo. This has to do with a JSP file being mapped
  to some string that is < 4 chars. Example: a.b.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.1 +10 -5     jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java
  
  Index: JspCompiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java,v
  retrieving revision 1.1.1.1
  retrieving revision 1.1.1.1.2.1
  diff -u -r1.1.1.1 -r1.1.1.1.2.1
  --- JspCompiler.java	1999/10/09 00:20:36	1.1.1.1
  +++ JspCompiler.java	1999/11/05 00:10:22	1.1.1.1.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java,v
1.1.1.1 1999/10/09 00:20:36 duncan Exp $
  - * $Revision: 1.1.1.1 $
  - * $Date: 1999/10/09 00:20:36 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspCompiler.java,v
1.1.1.1.2.1 1999/11/05 00:10:22 akv Exp $
  + * $Revision: 1.1.1.1.2.1 $
  + * $Date: 1999/11/05 00:10:22 $
    *
    * ====================================================================
    * 
  @@ -209,8 +209,13 @@
       }
       
       private final String getBaseClassName() {
  -	String className
  -	    = jsp.getName().substring(0, jsp.getName().length() - 4);
  +	String className;
  +        
  +        if (jsp.getName().endsWith(".jsp"))
  +            className = jsp.getName().substring(0, jsp.getName().length() - 4);
  +        else
  +            className = jsp.getName();
  +            
   	
   	// Fix for invalid characters. If you think of more add to the list.
   	StringBuffer modifiedClassName = new StringBuffer();
  
  
  

Mime
View raw message