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/connector SaveConnectorAction.java
Date Tue, 14 May 2002 23:30:30 GMT
manveen     02/05/14 16:30:30

  Modified:    webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector
                        SaveConnectorAction.java
  Log:
  Set proxyName attribute only if the user enters a value through the admin tool.
  
  Revision  Changes    Path
  1.10      +11 -7     jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/SaveConnectorAction.java
  
  Index: SaveConnectorAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/SaveConnectorAction.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SaveConnectorAction.java	9 May 2002 01:07:30 -0000	1.9
  +++ SaveConnectorAction.java	14 May 2002 23:30:30 -0000	1.10
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/SaveConnectorAction.java,v
1.9 2002/05/09 01:07:30 manveen Exp $
  - * $Revision: 1.9 $
  - * $Date: 2002/05/09 01:07:30 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/connector/SaveConnectorAction.java,v
1.10 2002/05/14 23:30:30 manveen Exp $
  + * $Revision: 1.10 $
  + * $Date: 2002/05/14 23:30:30 $
    *
    * ====================================================================
    *
  @@ -95,7 +95,7 @@
    * <em>Edit Connector</em> transactions.
    *
    * @author Manveen Kaur
  - * @version $Revision: 1.9 $ $Date: 2002/05/09 01:07:30 $
  + * @version $Revision: 1.10 $ $Date: 2002/05/14 23:30:30 $
    */
   
   public final class SaveConnectorAction extends Action {
  @@ -339,9 +339,13 @@
         
               // proxy name and port do not exist for AJP connector
               if (!("AJP".equalsIgnoreCase(connectorType))) {
  -                attribute = "proxyName";              
  -                mBServer.setAttribute(coname,
  -                                  new Attribute("proxyName", cform.getProxyName()));  
         
  +                attribute = "proxyName";  
  +                String proxyName = cform.getProxyName();
  +                if ((proxyName != null) || (proxyName.length()>0)) { 
  +                    mBServer.setAttribute(coname,
  +                                  new Attribute("proxyName", proxyName));
  +                }
  +                
                   attribute = "proxyPort";
                   int proxyPort = 0;
                   try {
  
  
  

--
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