tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manv...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/server SaveServerAction.java
Date Wed, 24 Apr 2002 06:03:51 GMT
manveen     02/04/23 23:03:51

  Modified:    webapps/admin/WEB-INF/classes/org/apache/webapp/admin/server
                        SaveServerAction.java
  Log:
  Display warning message if server port is changed to < 1024.
  
  Revision  Changes    Path
  1.2       +11 -5     jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/server/SaveServerAction.java
  
  Index: SaveServerAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/server/SaveServerAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SaveServerAction.java	4 Apr 2002 21:52:25 -0000	1.1
  +++ SaveServerAction.java	24 Apr 2002 06:03:51 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/server/SaveServerAction.java,v
1.1 2002/04/04 21:52:25 manveen Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/04/04 21:52:25 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/server/SaveServerAction.java,v
1.2 2002/04/24 06:03:51 manveen Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/04/24 06:03:51 $
    *
    * ====================================================================
    *
  @@ -90,7 +90,7 @@
    *
    * @author Jazmin Jonson
    * @author Manveen Kaur
  - * @version $Revision: 1.1 $ $Date: 2002/04/04 21:52:25 $
  + * @version $Revision: 1.2 $ $Date: 2002/04/24 06:03:51 $
    */
   
   public final class SaveServerAction extends Action {
  @@ -183,7 +183,13 @@
                   port = 0;
               }
               mBServer.setAttribute(soname,
  -                                  new Attribute("port", new Integer(port)));        
  +                                  new Attribute("port", new Integer(port)));   
  +            // set port warning as port < 1024 requires
  +            // special software capabilities
  +            if (port < 1024) {    
  +                request.setAttribute("warning", "server.port.warning");
  +            }
  +            
               attribute = "shutdown";
               mBServer.setAttribute(soname,
                                     new Attribute("shutdown", sform.getShutdownText()));
  
  
  

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


Mime
View raw message