blob: dbf751a1a4b0cb62b6facf199cead73e8958730e [file] [log] [blame]
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="org.apache.axis2.Constants,
org.apache.axis2.description.AxisService,
org.apache.axis2.description.ModuleDescription,
java.util.Collection,
java.util.HashMap,
java.util.Iterator" errorPage="" %>
<jsp:include page="include/adminheader.jsp"></jsp:include>
<%
String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS);
%>
<h1>Engage Module for a Service</h1>
<p>To engage a module for a axisService, first select the module you want to engage and then select the axisService you like the module to be engaged on and click "Engage".</p>
<form method="get" name="selectModuleForm" action="engageToService">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr>
<td>
&nbsp;
&nbsp;
</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 axisOperation = (ModuleDescription) iterator.next();
String modulename = axisOperation.getName().getLocalPart();
%> <option align="left" value="<%=modulename%>"><%=modulename%></option>
<%
}
%>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>Select a Service :</td>
</tr>
<tr>
<td>
<select name="axisService">
<%
HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
Collection serviceCol = services.values();
for (Iterator iterator = serviceCol.iterator(); iterator.hasNext();) {
AxisService axisService = (AxisService)iterator.next();
String serviceName = axisService.getName();
%> <option align="left" value="<%=serviceName%>"><%=serviceName%></option>
<%
}
%>
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<input name="submit" type="submit" value=" Engage " >
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<textarea cols="50" <%
if(status == null){
%>
style="display:none"
<%
} %>
><%=status%></textarea>
</td>
</tr>
</table>
</form>
<jsp:include page="include/adminfooter.jsp"></jsp:include>