You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by du...@apache.org on 2001/02/14 20:11:06 UTC

cvs commit: xml-soap/java/webapps/soap/admin showdetails.jsp

duftler     01/02/14 11:11:06

  Modified:    java/webapps/soap/admin showdetails.jsp
  Log:
  Fixed a bug that was causing services provided by user-defined providers
    to be listed as scripts, with a null listed as the actual script.
  
  Revision  Changes    Path
  1.5       +17 -4     xml-soap/java/webapps/soap/admin/showdetails.jsp
  
  Index: showdetails.jsp
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/webapps/soap/admin/showdetails.jsp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- showdetails.jsp	2001/02/02 03:30:36	1.4
  +++ showdetails.jsp	2001/02/14 19:11:06	1.5
  @@ -34,14 +34,27 @@
       out.println ("<td>Scope</td>");
       out.println ("<td>" + scopes[dd.getScope()]+ "</td>");
       out.println ("</tr>");
  -    out.println ("<tr>");
  -    out.println ("<td>Provider Type</td>");
  +
       byte ptb = dd.getProviderType ();
  -    String pt = (ptb==DeploymentDescriptor.PROVIDER_JAVA) ? "java" : "script";
  +    String ptLabel = "Provider Type";
  +    String pt = null;
  +
  +    if (ptb == DeploymentDescriptor.PROVIDER_JAVA) {
  +      pt = "java";
  +    } else if (ptb == DeploymentDescriptor.PROVIDER_USER_DEFINED) {
  +      ptLabel = "User-Defined " + ptLabel;
  +      pt = dd.getServiceClass();
  +    } else {
  +      pt = "script";
  +    }
  +
  +    out.println ("<tr>");
  +    out.println ("<td>" + ptLabel + "</td>");
       out.println ("<td>" + pt + "</td>");
       out.println ("</tr>");
       out.println ("<tr>");
  -    if (ptb == DeploymentDescriptor.PROVIDER_JAVA) {
  +    if (ptb == DeploymentDescriptor.PROVIDER_JAVA
  +        || ptb == DeploymentDescriptor.PROVIDER_USER_DEFINED) {
         out.println ("<td>Provider Class</td>");
         out.println ("<td>" + dd.getProviderClass()+ "</td>");
         out.println ("</tr>");