larryi      02/01/12 19:32:01

  Modified:    src/admin/test sanity-form.jsp
  Log:
  Keep port setting from run to run.  Default to getServerPort() if parameter
  not present.
  
  Revision  Changes    Path
  1.7       +4 -1      jakarta-tomcat/src/admin/test/sanity-form.jsp
  
  Index: sanity-form.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/admin/test/sanity-form.jsp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- sanity-form.jsp   9 Jan 2002 06:37:13 -0000       1.6
  +++ sanity-form.jsp   13 Jan 2002 03:32:01 -0000      1.7
  @@ -24,6 +24,9 @@
      String curTarget = request.getParameter("target");
      if (curTarget == null)
        curTarget = "client";
  +   String curPort = request.getParameter("port");
  +   if (curPort == null)
  +     curPort = String.valueOf(request.getServerPort());
      String curProto = request.getParameter("server.proto");
      if ( curProto == null )
        curProto = "HTTP/1.0";
  @@ -49,7 +52,7 @@
       <td valign="top">The host web server to test.</td></tr>
   <tr><td valign="top">Host HTTP Port:</td>
       <td valign="top"><input type="text" name="port"
  -        value="<%= request.getServerPort() %>" size="10"></td>
  +        value="<%= curPort %>" size="10"></td>
       <td valign="top">HTTP port being used by the host web server.<br>
           Specify 8080 for Tomcat and 80 for others.</td></tr>
   <tr><td valign="top">Expected protocol:</td>
  
  
  

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

Reply via email to