You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ak...@hyperreal.org on 1999/10/15 02:35:37 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtime ServletEngine.java TomcatServletEngine.java

akv         99/10/14 17:35:36

  Modified:    src/share/org/apache/jasper/runtime ServletEngine.java
                        TomcatServletEngine.java
  Log:
  Whew! I'm glad this ugliness is slowly dying.
  
  Revision  Changes    Path
  1.2       +4 -12     jakarta-tomcat/src/share/org/apache/jasper/runtime/ServletEngine.java
  
  Index: ServletEngine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/ServletEngine.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServletEngine.java	1999/10/09 00:20:40	1.1
  +++ ServletEngine.java	1999/10/15 00:35:32	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/ServletEngine.java,v 1.1 1999/10/09 00:20:40 duncan Exp $
  - * $Revision: 1.1 $
  - * $Date: 1999/10/09 00:20:40 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/ServletEngine.java,v 1.2 1999/10/15 00:35:32 akv Exp $
  + * $Revision: 1.2 $
  + * $Date: 1999/10/15 00:35:32 $
    *
    * ====================================================================
    * 
  @@ -86,7 +86,7 @@
        * we are running on.
        */
       static ServletEngine getServletEngine(String serverInfo) {
  -        if (serverInfo.startsWith("Java Server Web Dev Kit")) {
  +        if (serverInfo.startsWith("Tomcat Web Server")) {
               if (tomcat == null) {
                   try {
                       tomcat = (ServletEngine)
  @@ -107,14 +107,6 @@
        * Get the class loader for this ServletContext object. 
        */
       public ClassLoader getClassLoader(ServletContext ctx) {
  -        return null;
  -    }
  -
  -    /**
  -     * Get the class path for this ServletContext object. This is needed for
  -     * JSP compilation.
  -     */
  -    public String getClassPath(ServletContext ctx) {
           return null;
       }
   }
  
  
  
  1.2       +3 -7      jakarta-tomcat/src/share/org/apache/jasper/runtime/TomcatServletEngine.java
  
  Index: TomcatServletEngine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/TomcatServletEngine.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TomcatServletEngine.java	1999/10/09 00:20:39	1.1
  +++ TomcatServletEngine.java	1999/10/15 00:35:32	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/TomcatServletEngine.java,v 1.1 1999/10/09 00:20:39 duncan Exp $
  - * $Revision: 1.1 $
  - * $Date: 1999/10/09 00:20:39 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/TomcatServletEngine.java,v 1.2 1999/10/15 00:35:32 akv Exp $
  + * $Revision: 1.2 $
  + * $Date: 1999/10/15 00:35:32 $
    *
    * ====================================================================
    * 
  @@ -73,9 +73,5 @@
   public class TomcatServletEngine extends ServletEngine {
       public ClassLoader getClassLoader(ServletContext ctx) {
           return ((ServletContextFacade) ctx).getRealContext().getClassLoader();
  -    }
  -
  -    public String getClassPath(ServletContext ctx) {
  -        return ((ServletContextFacade) ctx).getRealContext().getClassPath();
       }
   }
  
  
  

Re: cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtime ServletEngine.java TomcatServletEngine.java

Posted by "Anil K. Vijendran" <ak...@eng.sun.com>.
Its there right now because org.apache.jasper.classloader is not implemented
yet. I don't want to leave anything broken. I'll remove it as soon as I get
a chance.

Hans Bergsten wrote:

> akv@hyperreal.org wrote:
> >
> > akv         99/10/14 17:35:36
> >
> >   Modified:    src/share/org/apache/jasper/runtime ServletEngine.java
> >                         TomcatServletEngine.java
> >   Log:
> >   Whew! I'm glad this ugliness is slowly dying.
>
> Can't you remove these two classes altogether now? With the new context
> attributes I don't see why you need them. That was kind of the point ;-)
>
> Hans
> --
> Hans Bergsten           hans@gefionsoftware.com
> Gefion Software         http://www.gefionsoftware.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

--
Peace, Anil +<:-)



Re: cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtime ServletEngine.java TomcatServletEngine.java

Posted by Hans Bergsten <ha...@gefionsoftware.com>.
akv@hyperreal.org wrote:
> 
> akv         99/10/14 17:35:36
> 
>   Modified:    src/share/org/apache/jasper/runtime ServletEngine.java
>                         TomcatServletEngine.java
>   Log:
>   Whew! I'm glad this ugliness is slowly dying.

Can't you remove these two classes altogether now? With the new context
attributes I don't see why you need them. That was kind of the point ;-)

Hans
-- 
Hans Bergsten		hans@gefionsoftware.com
Gefion Software		http://www.gefionsoftware.com