tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager HTMLManagerServlet.java
Date Thu, 02 Sep 2004 19:18:07 GMT
yoavs       2004/09/02 12:18:07

  Modified:    webapps/docs Tag: TOMCAT_5_0 changelog.xml
               webapps/manager/WEB-INF/classes/org/apache/catalina/manager
                        Tag: TOMCAT_5_0 HTMLManagerServlet.java
  Log:
  Added JavaScript confirmation for "dangerous" manager tasks.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.70.2.29 +3 -0      jakarta-tomcat-catalina/webapps/docs/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
  retrieving revision 1.70.2.28
  retrieving revision 1.70.2.29
  diff -u -r1.70.2.28 -r1.70.2.29
  --- changelog.xml	2 Sep 2004 18:51:00 -0000	1.70.2.28
  +++ changelog.xml	2 Sep 2004 19:18:07 -0000	1.70.2.29
  @@ -67,6 +67,9 @@
         <fix>
           <bug>29526</bug>: Manager redeployment locked JAR because of context.xml
stream. (yoavs)
         </fix>
  +      <update>
  +        Added JavaScript confirmation for "dangerous" manager tasks. (yoavs)
  +      </update>
       </changelog>
     </subsection>
     <subsection name="Jasper">
  
  
  
  No                   revision
  No                   revision
  1.12.2.1  +6 -6      jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/HTMLManagerServlet.java
  
  Index: HTMLManagerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/HTMLManagerServlet.java,v
  retrieving revision 1.12
  retrieving revision 1.12.2.1
  diff -u -r1.12 -r1.12.2.1
  --- HTMLManagerServlet.java	26 May 2004 16:41:49 -0000	1.12
  +++ HTMLManagerServlet.java	2 Sep 2004 19:18:07 -0000	1.12.2.1
  @@ -593,9 +593,9 @@
           " <td class=\"row-left\">\n" +
           "  <small>\n" +
           "  &nbsp;{1}&nbsp;\n" +
  -        "  &nbsp;<a href=\"{2}\">{3}</a>&nbsp;\n" +
  -        "  &nbsp;<a href=\"{4}\">{5}</a>&nbsp;\n" +
  -        "  &nbsp;<a href=\"{6}\">{7}</a>&nbsp;\n" +
  +        "  &nbsp;<a href=\"{2}\" onclick=\"return(confirm('Are you sure?'))\">{3}</a>&nbsp;\n"
+
  +        "  &nbsp;<a href=\"{4}\" onclick=\"return(confirm('Are you sure?'))\">{5}</a>&nbsp;\n"
+
  +        "  &nbsp;<a href=\"{6}\" onclick=\"return(confirm('Are you sure?'))\">{7}</a>&nbsp;\n"
+
           "  </small>\n" +
           " </td>\n" +
           "</tr>\n";
  @@ -603,10 +603,10 @@
       private static final String STOPPED_APPS_ROW_BUTTON_SECTION =
           " <td class=\"row-left\">\n" +
           "  <small>\n" +
  -        "  &nbsp;<a href=\"{0}\">{1}</a>&nbsp;\n" +
  +        "  &nbsp;<a href=\"{0}\" onclick=\"return(confirm('Are you sure?'))\">{1}</a>&nbsp;\n"
+
           "  &nbsp;{3}&nbsp;\n" +
           "  &nbsp;{5}&nbsp;\n" +
  -        "  &nbsp;<a href=\"{6}\">{7}</a>&nbsp;\n" +
  +        "  &nbsp;<a href=\"{6}\" onclick=\"return(confirm('Are you sure?'))\">{7}</a>&nbsp;\n"
+
           "  </small>\n" +
           " </td>\n" +
           "</tr>\n";
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message