Login | Register
My pages Projects Community openCollabNet

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

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

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>

« Previous message in topic | 2 of 2 | Next message in topic »

Messages

Show all messages in topic

Replacement of getServlet() deploy Deployment Pseudo-user 2000-08-29 23:27:15 PDT
     Re: [joist-dev] Replacement of getServlet() dlr Daniel Rall 2000-08-30 14:54:35 PDT
Messages per page: