larryi      01/08/07 05:17:45

  Modified:    src/admin/test test.jsp
  Log:
  Updated to set the colonPort property to "" if port 80 is used.  Avoids
  false failures when default handling would expect  "http://localhost:80/...";
  instead of "http://localhost/...";.
  
  Revision  Changes    Path
  1.15      +12 -0     jakarta-tomcat/src/admin/test/test.jsp
  
  Index: test.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/admin/test/test.jsp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- test.jsp  2001/07/19 06:19:57     1.14
  +++ test.jsp  2001/08/07 12:17:44     1.15
  @@ -17,6 +17,17 @@
   %>
   <% out.flush(); 
      if( request.getParameter("target") == null ) return;
  +
  +   String port = request.getParameter("port");
  +   String colonPort;
  +   try {
  +       colonPort = ":" + port;
  +       if ( Integer.parseInt(port) == 80 )
  +           colonPort = "";
  +   } catch (Exception e) {
  +      out.println("ERROR: Invalid port number!");
  +      return;
  +   }
   %>
   
   <ant:gtest />
  @@ -33,6 +44,7 @@
     <ant:property name="debug"  param="debug" />
     <ant:property name="outputType" value="none"  />
     <ant:property name="port" param="port" />
  +  <ant:property name="colonPort" value="<%= colonPort %>" />
     <ant:property name="http.protocol" param="server.proto" />
     <ant:property name="host" param="host" />
   </ant:ant>
  
  
  

Reply via email to