You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by gl...@apache.org on 2001/02/04 02:03:29 UTC

cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper EmbededServletOptions.java

glenn       01/02/03 17:03:29

  Modified:    jasper/src/share/org/apache/jasper
                        EmbededServletOptions.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.6       +3 -17     jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/EmbededServletOptions.java
  
  Index: EmbededServletOptions.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/EmbededServletOptions.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- EmbededServletOptions.java	2000/12/22 01:27:37	1.5
  +++ EmbededServletOptions.java	2001/02/04 01:03:28	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/EmbededServletOptions.java,v 1.5 2000/12/22 01:27:37 pierred Exp $
  - * $Revision: 1.5 $
  - * $Date: 2000/12/22 01:27:37 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/EmbededServletOptions.java,v 1.6 2001/02/04 01:03:28 glenn Exp $
  + * $Revision: 1.6 $
  + * $Date: 2001/02/04 01:03:28 $
    *
    * ====================================================================
    * 
  @@ -110,11 +110,6 @@
        * in?
        */
       public File scratchDir;
  -    /**
  -     * When used with a Securitymanager, what ProtectionDomain to use.
  -     */
  -    private Object protectionDomain;
  -
       
       /**
        * Need to have this as is for versions 4 and 5 of IE. Can be set from
  @@ -192,12 +187,6 @@
       }
   
       /**
  -     * ProtectionDomain for this JSP Context when using a SecurityManager
  -     */
  -    public final Object getProtectionDomain() {
  -        return protectionDomain;
  -    }
  -    /**
        * What classpath should I use while compiling the servlets
        * generated from JSP files?
        */
  @@ -294,9 +283,6 @@
               }
           }
                   
  -        // Get the ProtectionDomain for this Context in case
  -        // we are using a SecurityManager
  -        protectionDomain = context.getAttribute(Constants.ATTRIB_JSP_ProtectionDomain);
           if (this.scratchDir == null) {
               Constants.message("jsp.error.no.scratch.dir", Logger.FATAL);
               return;