Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/util URL.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/util URL.java

Author davidp
Full name David C. Pellegrini
Date 2000-11-13 16:45:16 PST
Message User: davidp
  Date: 00/11/13 16:45:16

  Modified: java/org/joist/security UnsecureServlet.java
               java/org/joist/util URL.java
  Log:
  Removed dependency on ServletConfig when doing redirectToHomePage()
  
  Revision Changes Path
  1.73 +3 -8 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.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- UnsecureServlet.java 2000/11/13 19:50:38 1.72
  +++ UnsecureServlet.java 2000/11/14 00:45:16 1.73
  @@ -73,7 +73,7 @@
    * loading to WebMacro servlets.
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.72 $
  + * @version $Revision: 1.73 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 CollabNet, Inc.
  @@ -101,11 +101,6 @@
       protected Properties myProperties;
   
       /**
  - * The servlet-specific configuration properties.
  - */
  - protected ServletConfig config = null;
  -
  - /**
        * The servlet-specific default template name.
        */
       protected String masterTemplateName = null;
  @@ -660,7 +655,7 @@
       redirectToHomePage (WebContext context)
       throws HandlerException, RedirectURLException
       {
  - URL.redirectToHomePage(context, config);
  + URL.redirectToHomePa​ge(context);
       }
   
   
  @@ -1068,7 +1063,7 @@
       // object. Make the System properties supply defaults.
   
       Properties initParameters = new Properties(System.ge​tProperties());
  - config = getServletConfig();
  + ServletConfig config = getServletConfig();
           if (config == null)
           {
               throw new ServletException ("ServletConfig is null");
  
  
  
  1.9 +3 -3 joist/java/org/joist​/util/URL.java
  
  Index: URL.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/util/URL.java,​v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- URL.java 2000/10/24 23:59:08 1.8
  +++ URL.java 2000/11/14 00:45:16 1.9
  @@ -62,7 +62,7 @@
    * Parses and builds URLs
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.8 $
  + * @version $Revision: 1.9 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -188,14 +188,14 @@
        * @exception RedirectURLException
        */
       static public void
  - redirectToHomePage (WebContext context, ServletConfig config)
  + redirectToHomePage (WebContext context)
       throws HandlerException, RedirectURLException
       {
       try
       {
           HttpServletResponse response = context.getResponse();
           StringBuffer newURL = httpAndServer(context);
  - newURL.append(config​.getInitParameter("H​omePage"));
  + newURL.append(JoistP​roperties.getPropert​y("HomePage"));
           if (debug) log.debug("redirectToHomePage: " + newURL);
           response.sendRedirect
                   (response.encodeRedi​rectUrl(newURL.toStr​ing()));

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

Messages

Show all messages in topic

CVS update: joist/java/org/joist/util URL.java davidp David C. Pellegrini 2000-11-13 16:45:16 PST
Messages per page: