You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2005/09/20 05:41:13 UTC
svn commit: r290345 - in /webservices/axis2/trunk/java/modules/core: conf/
src/org/apache/axis2/ src/org/apache/axis2/description/
src/org/apache/axis2/engine/ src/org/apache/axis2/transport/http/ webapp/
Author: deepal
Date: Mon Sep 19 20:40:57 2005
New Revision: 290345
URL: http://svn.apache.org/viewcvs?rev=290345&view=rev
Log:
updated JSPs to display ServiceGroups and to engage module to service Group
Added:
webservices/axis2/trunk/java/modules/core/webapp/EngageToServiceGroup.jsp
webservices/axis2/trunk/java/modules/core/webapp/ListServiceGroup.jsp
webservices/axis2/trunk/java/modules/core/webapp/listGroupService.jsp
Modified:
webservices/axis2/trunk/java/modules/core/conf/web.xml
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisConfigurationImpl.java
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
webservices/axis2/trunk/java/modules/core/webapp/LeftFrame.jsp
webservices/axis2/trunk/java/modules/core/webapp/listSingleService.jsp
Modified: webservices/axis2/trunk/java/modules/core/conf/web.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/conf/web.xml?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/conf/web.xml (original)
+++ webservices/axis2/trunk/java/modules/core/conf/web.xml Mon Sep 19 20:40:57 2005
@@ -97,10 +97,19 @@
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/selectServiceParaEdit</url-pattern>
</servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>/listServciceGroups</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>/engageToServiceGroup</url-pattern>
+ </servlet-mapping>
<error-page>
<exception-type>org.apache.axis2.transport.http.server.AdminAppException</exception-type>
<location>/Error/AuthError.html</location>
</error-page>
+
<!--error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/Error/GenError.html</location>
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java Mon Sep 19 20:40:57 2005
@@ -112,6 +112,8 @@
public static final String ENGAGE_GLOBAL_MODULE = "engagingglobally";
public static final String ENGAGE_MODULE_TO_SERVICE = "engageToService";
+ public static final String ENGAGE_MODULE_TO_SERVICE_GROUP = "engageToServiceGroup";
+
public static final String ADMIN_LOGGING = "adminloging";
public static final String VIEW_GLOBAL_HANDLERS = "viewGlobalHandlers";
@@ -119,11 +121,13 @@
public static final String EDIR_SERVICE_PARA = "editServicepara";
public static final String SELECT_SERVICE_FOR_PARA_EDIT = "selectServiceParaEdit";
public static final String VIEW_SERVICE_HANDLERS = "viewServiceHandlers";
+ public static final String LIST_SERVIC_GROUPS = "listServciceGroups";
/**
* Field SERVICE_MAP
*/
public static final String SERVICE_MAP = "servicemap";
+ public static final String SERVICE_GROUP_MAP = "serviceGroupmap";
public static final String SERVICE = "service";
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/ServiceGroupDescription.java Mon Sep 19 20:40:57 2005
@@ -138,8 +138,8 @@
}
for (Iterator iterator = modules.iterator();
iterator.hasNext();) {
- ModuleDescription modu = (ModuleDescription) iterator.next();
- if (modu.getName().equals(moduleName)) {
+ QName modu = (QName) iterator.next();
+ if (modu.getLocalPart().equals(moduleName.getLocalPart())) {
throw new AxisFault(moduleName.getLocalPart() +
" module has alredy been engaged on the service Group. " +
" Operation terminated !!!");
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisConfigurationImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisConfigurationImpl.java?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisConfigurationImpl.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/AxisConfigurationImpl.java Mon Sep 19 20:40:57 2005
@@ -271,6 +271,11 @@
allservices.put(description.getName().getLocalPart(),description);
notifyObservers(AxisEvent.SERVICE_DEPLOY ,description);
}
+ Iterator enModule = engagedModules.iterator();
+ while (enModule.hasNext()) {
+ QName moduleDescription = (QName) enModule.next();
+ serviceGroup.addModule(moduleDescription);
+ }
serviceGroups.put(serviceGroup.getServiceGroupName(),serviceGroup);
}
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/ListingAgent.java Mon Sep 19 20:40:57 2005
@@ -46,6 +46,8 @@
*/
private static final String LIST_MULTIPLE_SERVICE_JSP_NAME = "listServices.jsp";
+ private static final String LIST_SERVICE_GROUP_JSP = "ListServiceGroup.jsp";
+
private static final String LIST_SRVICES_JSP_NAME = "listService.jsp";
private static final String SELECT_SERVICE_JSP_NAME = "SelectService.jsp";
@@ -63,6 +65,7 @@
private static final String ENGAGING_MODULE_GLOBALLY_JSP_NAME = "engagingglobally.jsp";
private static final String ENGAGING_MODULE_TO_SERVICE_JSP_NAME = "engagingtoaservice.jsp";
+ private static final String ENGAGING_MODULE_TO_SERVICE_GROUP_JSP_NAME = "EngageToServiceGroup.jsp";
/**
* Field LIST_SINGLE_SERVICE_JSP_NAME
@@ -106,7 +109,7 @@
return;
} else if (
(filePart != null) &&
- filePart.endsWith(Constants.LIST_GLOABLLY_ENGAGED_MODULES)) {
+ filePart.endsWith(Constants.LIST_GLOABLLY_ENGAGED_MODULES)) {
listGloballyModules(httpServletRequest, httpServletResponse);
return;
} else if ((filePart != null) &&
@@ -121,6 +124,10 @@
filePart.endsWith(Constants.ENGAGE_MODULE_TO_SERVICE)) {
engageModulesToService(httpServletRequest, httpServletResponse);
return;
+ } else if ((filePart != null) &&
+ filePart.endsWith(Constants.ENGAGE_MODULE_TO_SERVICE_GROUP)) {
+ engageModulesToServiceGroup(httpServletRequest, httpServletResponse);
+ return;
} else if ((filePart != null) &&
filePart.endsWith(Constants.ADMIN_LOGGING)) {
adminLogging(httpServletRequest, httpServletResponse);
@@ -139,12 +146,12 @@
return;
} else if (
(filePart != null) &&
- filePart.endsWith(Constants.LIST_SERVICE_FOR_MODULE_ENGAMNET)) {
+ filePart.endsWith(Constants.LIST_SERVICE_FOR_MODULE_ENGAMNET)) {
lsitServiceformodules(httpServletRequest, httpServletResponse);
return;
} else if (
(filePart != null) &&
- filePart.endsWith(Constants.LIST_OPERATIONS_FOR_THE_SERVICE)) {
+ filePart.endsWith(Constants.LIST_OPERATIONS_FOR_THE_SERVICE)) {
engageModulesToOpeartion(httpServletRequest, httpServletResponse);
return;
} else if ((filePart != null) &&
@@ -159,8 +166,14 @@
filePart.endsWith(Constants.EDIR_SERVICE_PARA)) {
chageParameters(httpServletRequest, httpServletResponse);
return;
+ }else if ((filePart != null) &&
+ filePart.endsWith(Constants.LIST_SERVIC_GROUPS)) {
+ listServiceGroups(httpServletRequest, httpServletResponse);
+ return;
}
+
+
if ((filePart != null) &&
filePart.endsWith(Constants.LISTSERVICES)) {
listServices(httpServletRequest, httpServletResponse);
@@ -188,6 +201,14 @@
res.sendRedirect(LIST_MULTIPLE_SERVICE_JSP_NAME);
}
+ private void listServiceGroups(HttpServletRequest req, HttpServletResponse res) throws IOException {
+ Iterator serviceGroups = configContext.getAxisConfiguration().getServiceGroups();
+ HashMap services = configContext.getAxisConfiguration().getServices();
+ req.getSession().setAttribute(Constants.SERVICE_MAP, services);
+ req.getSession().setAttribute(Constants.SERVICE_GROUP_MAP, serviceGroups);
+ res.sendRedirect(LIST_SERVICE_GROUP_JSP);
+ }
+
/**
* @param req
* @param res
@@ -223,12 +244,12 @@
}
String adminUserName =
(String) configContext.getAxisConfiguration()
- .getParameter(Constants.USER_NAME)
- .getValue();
+ .getParameter(Constants.USER_NAME)
+ .getValue();
String adminPassword =
(String) configContext.getAxisConfiguration()
- .getParameter(Constants.PASSWORD)
- .getValue();
+ .getParameter(Constants.PASSWORD)
+ .getValue();
if (username != null
&& password != null
&& username.equals(adminUserName)
@@ -296,9 +317,9 @@
}
req.getSession().setAttribute(Constants.OPEARTION_MAP,
configContext
- .getAxisConfiguration()
- .getService(serviceName)
- .getOperations());
+ .getAxisConfiguration()
+ .getService(serviceName)
+ .getOperations());
req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
String operationName = req.getParameter("operation");
if (serviceName != null && moduleName != null && operationName != null) {
@@ -306,13 +327,13 @@
OperationDescription od =
configContext.getAxisConfiguration().getService(
serviceName)
- .getOperation(new QName(operationName));
+ .getOperation(new QName(operationName));
od.engageModule(
configContext.getAxisConfiguration().getModule(
new QName(moduleName)));
req.getSession().setAttribute(Constants.ENGAGE_STATUS,
moduleName +
- " module engaged to the operation Successfully");
+ " module engaged to the operation Successfully");
} catch (AxisFault axisFault) {
req.getSession().setAttribute(Constants.ENGAGE_STATUS,
axisFault.getMessage());
@@ -322,6 +343,39 @@
res.sendRedirect(ENGAGE_TO_OPERATION_JSP_NAME);
}
+
+
+ private void engageModulesToServiceGroup(HttpServletRequest req,
+ HttpServletResponse res)
+ throws IOException {
+ HashMap modules =
+ ((AxisConfigurationImpl) configContext.getAxisConfiguration()).getModules();
+ req.getSession().setAttribute(Constants.MODULE_MAP, modules);
+ Iterator services = configContext.getAxisConfiguration().getServiceGroups();
+ req.getSession().setAttribute(Constants.SERVICE_GROUP_MAP, services);
+ String moduleName = req.getParameter("modules");
+ req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+ req.getSession().setAttribute("modules", null);
+ String serviceName = req.getParameter("service");
+ req.getSession().setAttribute(Constants.ENGAGE_STATUS, null);
+ if (serviceName != null && moduleName != null) {
+ try {
+
+ configContext.getAxisConfiguration().getServiceGroup(
+ serviceName)
+ .engageModuleToGroup(new QName(moduleName));
+ req.getSession().setAttribute(Constants.ENGAGE_STATUS,
+ moduleName +
+ " module engaged to the serviceGroup Successfully");
+ } catch (AxisFault axisFault) {
+ req.getSession().setAttribute(Constants.ENGAGE_STATUS,
+ axisFault.getMessage());
+ }
+ }
+ req.getSession().setAttribute("service", null);
+ res.sendRedirect(ENGAGING_MODULE_TO_SERVICE_GROUP_JSP_NAME);
+ }
+
private void engageModulesToService(HttpServletRequest req,
HttpServletResponse res)
throws IOException {
@@ -345,7 +399,7 @@
new QName(moduleName)),configContext.getAxisConfiguration());
req.getSession().setAttribute(Constants.ENGAGE_STATUS,
moduleName +
- " module engaged to the service Successfully");
+ " module engaged to the service Successfully");
} catch (AxisFault axisFault) {
req.getSession().setAttribute(Constants.ENGAGE_STATUS,
axisFault.getMessage());
Added: webservices/axis2/trunk/java/modules/core/webapp/EngageToServiceGroup.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/webapp/EngageToServiceGroup.jsp?rev=290345&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/webapp/EngageToServiceGroup.jsp (added)
+++ webservices/axis2/trunk/java/modules/core/webapp/EngageToServiceGroup.jsp Mon Sep 19 20:40:57 2005
@@ -0,0 +1,111 @@
+<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="org.apache.axis2.Constants,
+ org.apache.axis2.description.ModuleDescription,
+ org.apache.axis2.description.ServiceDescription,
+ java.util.Collection,
+ java.util.HashMap,
+ java.util.Iterator" errorPage="" %>
+<%@ page import="org.apache.axis2.description.ServiceGroupDescription"%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <title>Engaging Module to a Service Group</title>
+ <style type="text/css">
+
+ </style></head>
+
+<body>
+<%
+ String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS);
+%>
+<form method="get" name="engaginModule" action="engageToServiceGroup">
+ <table border="0" width="100%" cellspacing="1" cellpadding="1">
+ <tr>
+ <td>
+
+
+ </td>
+ </tr>
+ <tr>
+ <td>Select a Module :</td>
+ </tr>
+ <tr>
+ <td>
+ <select name="modules">
+ <%
+ HashMap moduels = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
+ Collection moduleCol = moduels.values();
+ for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
+ ModuleDescription description = (ModuleDescription) iterator.next();
+ String modulename = description.getName().getLocalPart();
+ %> <option align="left" value="<%=modulename%>"><%=modulename%></option>
+ <%
+ }
+ %>
+ </td>
+ </tr>
+ <tr>
+ <td>
+
+
+ </td>
+ </tr>
+ <tr>
+ <td>Select a Service Group :</td>
+ </tr>
+ <tr>
+ <td>
+ <select name="service">
+ <%
+ Iterator servicesGroups = (Iterator)request.getSession().getAttribute(Constants.SERVICE_GROUP_MAP);
+ while(servicesGroups.hasNext()){
+ ServiceGroupDescription groupDescription = (ServiceGroupDescription) servicesGroups.next();
+ String servicName = groupDescription.getServiceGroupName();
+ %> <option align="left" value="<%=servicName%>"><%=servicName%></option>
+ <%
+ }
+
+ %>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>
+
+
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input name="submit" type="submit" value=" Engage " >
+ </td>
+ </tr>
+ <tr>
+ <td>
+
+
+ </td>
+ </tr>
+ <tr>
+ <td>
+
+
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <textarea cols="50" <%
+ if(status == null){
+ %>
+ style="display:none"
+ <%
+ } %>
+ ><%=status%></textarea>
+ </td>
+ </tr>
+ </table>
+</form>
+</body>
+</html>
+
+
Modified: webservices/axis2/trunk/java/modules/core/webapp/LeftFrame.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/webapp/LeftFrame.jsp?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/webapp/LeftFrame.jsp (original)
+++ webservices/axis2/trunk/java/modules/core/webapp/LeftFrame.jsp Mon Sep 19 20:40:57 2005
@@ -50,6 +50,14 @@
</td>
<td >
+ <a href="listServciceGroups" target="mainFrame">Available ServiceGroups</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+
+ </td>
+ <td >
<a href="listModules" target="mainFrame">Available Modules</a>
</td>
</tr>
@@ -113,6 +121,15 @@
<a href="engagingglobally" target="mainFrame">Gloabally</a>
</td>
</tr>
+ <tr>
+ <td>
+
+ </td>
+ <td>
+ <a href="engageToServiceGroup" target="mainFrame">To Service Group</a>
+ </td>
+ </tr>
+
<tr>
<td>
Added: webservices/axis2/trunk/java/modules/core/webapp/ListServiceGroup.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/webapp/ListServiceGroup.jsp?rev=290345&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/webapp/ListServiceGroup.jsp (added)
+++ webservices/axis2/trunk/java/modules/core/webapp/ListServiceGroup.jsp Mon Sep 19 20:40:57 2005
@@ -0,0 +1,56 @@
+<%@ page import="org.apache.axis2.Constants" %>
+<%@ page import="org.apache.axis2.description.ServiceDescription" %>
+<%@ page import="org.apache.axis2.description.ModuleDescription" %>
+<%@ page import="java.util.*" %>
+<%@ page import="org.apache.axis2.description.ServiceGroupDescription" %>
+<%@ page import="javax.xml.namespace.QName"%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head><title>List Services Groups</title>
+ <link href="css/axis-style.css" rel="stylesheet" type="text/css">
+</head>
+
+<body>
+<h1>Available Service Groups</h1>
+<%
+ Iterator serviceGroup = (Iterator)request.getSession().getAttribute(
+ Constants.SERVICE_GROUP_MAP);
+ while(serviceGroup.hasNext()){
+ ServiceGroupDescription groupDescription = (ServiceGroupDescription) serviceGroup.next();
+ String groupName = groupDescription.getServiceGroupName();
+ ArrayList modules = groupDescription.getServiceGroupModules();
+ Iterator service = groupDescription.getServices();
+%>
+<h2><%=groupName%></h2><ul>
+ <%
+ while(service.hasNext()){
+ ServiceDescription serviceDescription = (ServiceDescription) service.next();
+ String serviceName = serviceDescription.getName().getLocalPart();
+ %>
+ <li><font color="blue"><a href="listGroupService.jsp?serviceName=<%=serviceName%>">
+ <%=serviceName%> </a></font></li>
+ <%
+ }
+ %>
+</ul>
+<%
+ if(modules.size() >0){
+%>
+<I>Engaged modules</I><ul>
+<%
+ for (int i = 0; i < modules.size(); i++) {
+ QName modulDesc = (QName)modules.get(i);
+%>
+ <li><%=modulDesc.getLocalPart()%></li>
+<%
+ }
+ %></ul><%
+ }
+
+%>
+<hr>
+<%
+ }
+%>
+</body>
+</html>
\ No newline at end of file
Added: webservices/axis2/trunk/java/modules/core/webapp/listGroupService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/webapp/listGroupService.jsp?rev=290345&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/core/webapp/listGroupService.jsp (added)
+++ webservices/axis2/trunk/java/modules/core/webapp/listGroupService.jsp Mon Sep 19 20:40:57 2005
@@ -0,0 +1,79 @@
+<%@ page import="org.apache.axis2.Constants"%>
+<%@ page import="org.apache.axis2.description.ServiceDescription"%>
+<%@ page import="org.apache.axis2.description.ModuleDescription"%>
+<%@ page import="org.apache.axis2.description.OperationDescription"%>
+<%@ page import="java.util.*"%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head><title>List Services</title>
+ <link href="css/axis-style.css" rel="stylesheet" type="text/css">
+</head>
+<body>
+<h1>Available services</h1>
+<%String IP=request.getRequestURL().toString();
+ int lastindex = IP.lastIndexOf('/');
+ IP = IP.substring(0,lastindex);
+ String prifix = IP + "/services/";
+ %>
+<%
+ HashMap serviceMap = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
+ String servicName = request.getParameter("serviceName");
+ ServiceDescription axisService = (ServiceDescription)serviceMap.get(servicName);
+ if (axisService!=null){
+ HashMap operations;
+ String serviceName = "";
+ Collection operationsList;
+ operations = axisService.getOperations();
+ operationsList = operations.values();
+ serviceName = axisService.getName().getLocalPart();
+ %><hr><h2><font color="blue"><a href="<%=prifix + axisService.getName().getLocalPart()%>?wsdl"><%=serviceName%></a></font></h2>
+<font color="blue">Service EPR : <font color="black"><%=prifix + axisService.getName().getLocalPart()%></font>
+ <h4>Service Description : <font color="black"><%=axisService.getServiceDescription()%></h4>
+ <%
+ Collection engagdeModules = axisService.getEngagedModules();
+ String moduleName = "";
+ if(engagdeModules.size() >0){
+ %>
+ <i>Engaged Modules for the service</i>
+ <%
+ for (Iterator iteratorm = engagdeModules.iterator(); iteratorm.hasNext();) {
+ ModuleDescription description = (ModuleDescription) iteratorm.next();
+ moduleName = description.getName().getLocalPart();
+ %><li><%=moduleName%></li>
+ <br>
+ <%
+ }
+ }
+ if (operationsList.size() > 0) {
+ %><br><i>Available operations</i><%
+} else {
+%><i> There are no any opeartions specified</i><%
+ }
+%><ul><%
+ for (Iterator iterator1 = operationsList.iterator(); iterator1.hasNext();) {
+ OperationDescription axisOperation = (OperationDescription) iterator1.next();
+%><li><%=axisOperation.getName().getLocalPart()%></li>
+ <%-- <br>Opeartion EPR : <%=prifix + axisService.getName().getLocalPart() + "/"+ axisOperation.getName().getLocalPart()%>--%>
+ <%
+ engagdeModules = null;
+ engagdeModules = axisOperation.getModules();
+ moduleName = "";
+ if(engagdeModules.size() >0){
+ %>
+ <br><i>Engaged Modules for the opeartion</i><ul>
+ <%
+ for (Iterator iterator2 = engagdeModules.iterator(); iterator2.hasNext();) {
+ ModuleDescription description = (ModuleDescription) iterator2.next();
+ moduleName = description.getName().getLocalPart();
+ %><li><%=moduleName%></li><br><%
+ }
+%></ul><%
+ }
+
+ }
+%></ul>
+ <%
+ }
+ %>
+</body>
+</html>
\ No newline at end of file
Modified: webservices/axis2/trunk/java/modules/core/webapp/listSingleService.jsp
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/webapp/listSingleService.jsp?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/webapp/listSingleService.jsp (original)
+++ webservices/axis2/trunk/java/modules/core/webapp/listSingleService.jsp Mon Sep 19 20:40:57 2005
@@ -1,5 +1,6 @@
<%@ page import="org.apache.axis2.Constants,
java.util.Hashtable"%>
+<%@ page import="java.util.HashMap"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>List Services</title>
@@ -8,15 +9,15 @@
<body>
<%
String isFault = (String)request.getSession().getAttribute(Constants.IS_FAULTY);
+ String servicName = request.getParameter("serviceName");
if(Constants.IS_FAULTY.equals(isFault)){
Hashtable errornessservices =(Hashtable)request.getSession().getAttribute(Constants.ERROR_SERVICE_MAP);
- String servicName = request.getParameter("serviceName");
%>
<h3>This Web service has deployment faults</h3><%
%><font color="red" ><%=(String)errornessservices.get(servicName) %></font>
<%
- }else{
+ }else {
%>
Oh! this place seems to be empty!!!</body>
<%