Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Replacement of getServlet()

Project highlights: Architectural Overview

joist
Discussion topic

Hide all messages in topic

All messages in topic

Re: [joist-dev] Replacement of getServlet()

Author dlr
Full name Daniel Rall
Date 2000-08-30 14:54:35 PDT
Message Josh Lucas wrote:
>
> I realize that moving from JServ to Tomcat is still a bit of time away but
> I wanted to possibly start a discussion of how we can get there. The
> largest issue is the use of getServlet() in UnsecureServlet. The link
> below has some ideas of how to 'upgrade' your servlets away from using
> getServlet().
>
> Hopefully it will be some fodder for discussion.
>
> http://java.sun.com/​docs/books/tutorial/​servlets/communicati​on/attributes.html#c​onvert


  User: dlr
  Date: 00/08/30 12:00:26

  Modified: java/org/joist/security UnsecureServlet.java
  Log:
  Steps for removal of getServlet() to move towards Servlet API 2.2
compliance.
  
  Revision Changes Path
  1.37 +12 -1
joist/java/org/joist​/security/UnsecureSe​rvlet.java
  
  Index: UnsecureServlet.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/security/Unsec​ureServlet.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- UnsecureServlet.java 2000/08/29 05:31:22 1.36
  +++ UnsecureServlet.java 2000/08/30 19:00:25 1.37
  @@ -70,7 +70,7 @@
    * loading to WebMacro servlets.
    *
    * @author David C. Pellegrini <A HREF="
mailto:davidp@datawe​b-systems.com">da​vidp@dataweb-systems​.com</A>
  - * @version $Revision: 1.36 $
  + * @version $Revision: 1.37 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -208,6 +208,17 @@
                {
                    redirect = (UnsecureServlet)
                        servletContext.getSe​rvlet(servletName);
  + /* TODO: Jon's list for upgrading Joist for
Servlet 2.2 API
  + // Create the servlet.
  + redirect = (UnsecureServlet)
  + Class.forName(servle​tName).newInstance()​;
  +
  + // Call start()
  +
  + // Cache object in a Map, so that it's known
that it's
  + // already been initialized.
  +
  + */
                }
                catch (ServletException se)
                {
  
  
  
--

Daniel Rall <dlr at finemaltcoding dot com>

Replacement of getServlet()

Author deploy
Full name Deployment Pseudo-user
Date 2000-08-29 23:27:15 PDT
Message I realize that moving from JServ to Tomcat is still a bit of time away but
I wanted to possibly start a discussion of how we can get there. The
largest issue is the use of getServlet() in UnsecureServlet. The link
below has some ideas of how to 'upgrade' your servlets away from using
getServlet().

Hopefully it will be some fodder for discussion.

http://java.sun.com/​docs/books/tutorial/​servlets/communicati​on/attributes.html#c​onvert


josh
Messages per page: