glenn       01/02/03 17:03:53

  Modified:    jasper/src/share/org/apache/jasper
                        JspCompilationContext.java
  Log:
  - Implemented Java SecurityManager
  - Switched to using URLClassLoader
  
  Jasper now creates a URLClassLoader for each JSP page and defers any other
  class loading to the web app context class loader.  Using a single class
  loader per JSP allowed me to remove all the code that increments the
  class version number, i.e. the work directory no longer has multiple
  *.java and *.class files for the same JSP page.  These changes also made
  it easy for me to put the java source and class files in the same directory
  tree as found in the web app context.  When Jasper is run in a servlet
  container it no longer puts the class files in a package, they are now
  in the default package.
  
  Revision  Changes    Path
  1.4       +5 -19     
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspCompilationContext.java
  
  Index: JspCompilationContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspCompilationContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JspCompilationContext.java        2000/11/06 20:52:19     1.3
  +++ JspCompilationContext.java        2001/02/04 01:03:52     1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspCompilationContext.java,v
 1.3 2000/11/06 20:52:19 pierred Exp $
  - * $Revision: 1.3 $
  - * $Date: 2000/11/06 20:52:19 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspCompilationContext.java,v
 1.4 2001/02/04 01:03:52 glenn Exp $
  + * $Revision: 1.4 $
  + * $Date: 2001/02/04 01:03:52 $
    *
    * ====================================================================
    * 
  @@ -67,7 +67,6 @@
   
   import org.apache.jasper.compiler.JspReader;
   import org.apache.jasper.compiler.ServletWriter;
  -//import org.apache.jasper.runtime.JspLoader;
   import org.apache.jasper.compiler.TagLibraries;
   import java.io.IOException;
   import java.net.URL;
  @@ -79,9 +78,6 @@
    * engine. This is a per-request/per-context data structure. Some of
    * the instance variables are set at different points.
    *
  - * JspLoader creates this object and passes this off to the "compiler"
  - * subsystem, which then initializes the rest of the variables. 
  - *
    * @author Anil K. Vijendran
    * @author Harish Prabandham
    * @author Pierre Delisle
  @@ -109,10 +105,6 @@
        */
       public ClassLoader getClassLoader();
   
  -    /** Add a jar to the classpath used by the loader
  -     */
  -    void addJar(String jar) throws IOException ;
  -
       /**
        * Are we processing something that has been declared as an
        * errorpage? 
  @@ -139,17 +131,11 @@
       public String getServletClassName();
       
       /**
  -     * The package name into which the servlet class is generated. 
  +     * The package name into which the servlet class is generated.
        */
       public String getServletPackageName();
   
       /**
  -     * Utility method to get the full class name from the package and
  -     * class name. 
  -     */
  -    public String getFullClassName();
  -
  -    /**
        * Full path name of the Java file into which the servlet is being
        * generated. 
        */
  @@ -180,7 +166,7 @@
       void setServletClassName(String servletClassName);
       
       public void setServletPackageName(String servletPackageName);
  -    
  +
       public void setServletJavaFileName(String servletJavaFileName);
       
       public void setErrorPage(boolean isErrPage);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to