remm        2002/09/18 07:08:34

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        HTMLManagerServlet.java
  Log:
  - Allow the HTML manager to manipulate the root webapp.
  - Fix bug 12053.
  
  Revision  Changes    Path
  1.12      +7 -24     
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/HTMLManagerServlet.java
  
  Index: HTMLManagerServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/HTMLManagerServlet.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- HTMLManagerServlet.java   12 Sep 2002 07:07:27 -0000      1.11
  +++ HTMLManagerServlet.java   18 Sep 2002 14:08:34 -0000      1.12
  @@ -224,9 +224,6 @@
   
           for (int i = 0; i < contextPaths.length; i++) {
               String displayPath = contextPaths[i];
  -            if (displayPath.equals("")) {
  -                displayPath = "/";
  -            }
               sortedContextPathsMap.put(displayPath, contextPaths[i]);
           }
   
  @@ -241,6 +238,9 @@
               String displayPath = (String) entry.getKey();
               String contextPath = (String) entry.getKey();
               Context context = deployer.findDeployedApp(contextPath);
  +            if (displayPath.equals("")) {
  +                displayPath = "/";
  +            }
   
               if (context != null ) {
                   args = new Object[6];
  @@ -272,14 +272,6 @@
                           STOPPED_APPS_ROW_BUTTON_SECTION, args));
                   }
   
  -            } else if (displayPath.equals("/")) {
  -                args = new Object[4];
  -                args[0] = displayPath;
  -                args[1] = "ROOT";
  -                args[2] = new Boolean(true);
  -                args[3] = "-";
  -                writer.print
  -                    (MessageFormat.format(APPS_ROOT_ROW_SECTION, args));
               }
           }
   
  @@ -551,15 +543,6 @@
           "  &nbsp;<a href=\"remove?path={0}\">{4}</a>&nbsp; \n" +
           "  </small> \n" +
           " </td> \n" +
  -        "</tr> \n";
  -
  -    private static final String APPS_ROOT_ROW_SECTION =
  -        "<tr> \n" +
  -        " <td class=\"row-left\"><small><a href=\"{0}\">{0}</a></small></td>\n" +
  -        " <td class=\"row-left\"><small>{1}</small></td> \n" +
  -        " <td class=\"row-center\"><small>{2}</small></td> \n" +
  -        " <td class=\"row-center\"><small>{3}</small></td> \n" +
  -        " <td class=\"row-right\">&nbsp;</td> \n" +
           "</tr> \n";
   
       private static final String INSTALL_SECTION =
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to