tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amy...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/webapps/admin/service service.jsp
Date Thu, 27 Mar 2003 08:26:26 GMT
amyroh      2003/03/27 00:26:26

  Modified:    webapps/admin/WEB-INF/classes/org/apache/webapp/admin/service
                        SaveServiceAction.java
               webapps/admin/host host.jsp
               webapps/admin/service service.jsp
  Log:
  Minor fix for input length and correct tree node display.
  
  Revision  Changes    Path
  1.7       +25 -4     jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/service/SaveServiceAction.java
  
  Index: SaveServiceAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/service/SaveServiceAction.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SaveServiceAction.java	24 Mar 2003 09:17:02 -0000	1.6
  +++ SaveServiceAction.java	27 Mar 2003 08:26:25 -0000	1.7
  @@ -87,6 +87,7 @@
   import org.apache.struts.action.ActionMapping;
   import org.apache.struts.util.MessageResources;
   import org.apache.webapp.admin.ApplicationServlet;
  +import org.apache.webapp.admin.Lists;
   import org.apache.webapp.admin.TomcatTreeBuilder;
   import org.apache.webapp.admin.TreeControl;
   import org.apache.webapp.admin.TreeControlNode;
  @@ -296,6 +297,26 @@
                                                   "content",
                                                   true, engineName);
                           parentNode.addChild(childNode);
  +                        // update tree to display the newly added realm
  +                        Iterator realmNames =
  +                            Lists.getRealms(mBServer, sObjectName).iterator();
  +                        while (realmNames.hasNext()) {
  +                            String realmName = (String) realmNames.next();
  +                            ObjectName objectName = new ObjectName(realmName);
  +                            nodeLabel = "Realm for service (" + 
  +                                                sform.getServiceName() + ")";
  +                            TreeControlNode realmNode =
  +                                new TreeControlNode(realmName,
  +                                                    "Realm.gif",
  +                                                    nodeLabel,
  +                                                    "EditRealm.do?select=" +
  +                                                    URLEncoder.encode(realmName) +
  +                                                    "&nodeLabel=" +
  +                                                    URLEncoder.encode(nodeLabel),
  +                                                    "content",
  +                                                    false, engineName);
  +                            childNode.addChild(realmNode);               
  +                        }         
                           // FIXME - force a redisplay
                       } else {
                           getServlet().log
  
  
  
  1.9       +1 -1      jakarta-tomcat-catalina/webapps/admin/host/host.jsp
  
  Index: host.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/admin/host/host.jsp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- host.jsp	25 Mar 2003 08:29:06 -0000	1.8
  +++ host.jsp	27 Mar 2003 08:26:25 -0000	1.9
  @@ -150,7 +150,7 @@
               <controls:data>
               <%-- input only allowed on create transaction --%>
                <logic:equal name="hostForm" property="adminAction" value="Create">
  -              <html:text property="hostName" size="255" maxlength="24" styleId="name"/>
  +              <html:text property="hostName" size="50" maxlength="50" styleId="name"/>
                </logic:equal>
                <logic:equal name="hostForm" property="adminAction" value="Edit">
                 <bean:write name="hostForm" property="hostName"/>
  
  
  
  1.8       +2 -2      jakarta-tomcat-catalina/webapps/admin/service/service.jsp
  
  Index: service.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/admin/service/service.jsp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- service.jsp	25 Mar 2003 08:29:06 -0000	1.7
  +++ service.jsp	27 Mar 2003 08:26:26 -0000	1.8
  @@ -168,7 +168,7 @@
               </controls:label>
               <controls:data>
                 <logic:equal name="serviceForm" property="adminAction" value="Create">
  -                <html:text property="serviceName" size="24" maxlength="24" styleId="serviceName"/>
  +                <html:text property="serviceName" size="50" maxlength="50" styleId="serviceName"/>
                 </logic:equal>
                 <logic:equal name="serviceForm" property="adminAction" value="Edit">
                   <html:hidden property="serviceName"/>
  @@ -212,7 +212,7 @@
               </controls:label>
               <controls:data>
                 <logic:equal name="serviceForm" property="adminAction" value="Create">
  -                <html:text property="engineName" size="24" maxlength="24" styleId="engineName"/>
  +                <html:text property="engineName" size="50" maxlength="50" styleId="engineName"/>
                 </logic:equal>
                 <logic:equal name="serviceForm" property="adminAction" value="Edit">
                   <html:hidden property="engineName"/>
  
  
  

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