<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*, | |
java.util.HashMap, | |
org.apache.axis.Constants, | |
java.util.Collection, | |
java.util.Iterator, | |
org.apache.axis.description.ModuleDescription, | |
org.apache.axis.description.ServiceDescription" errorPage="" %> | |
<!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</title> | |
<style type="text/css"> | |
</style></head> | |
<body> | |
<% | |
String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS); | |
%> | |
<form method="get" name="engaginModule" action="engageToService"> | |
<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 :</td> | |
</tr> | |
<tr> | |
<td> | |
<select name="service"> | |
<% | |
HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP); | |
Collection serviceCol = services.values(); | |
for (Iterator iterator = serviceCol.iterator(); iterator.hasNext();) { | |
ServiceDescription axisService = (ServiceDescription)iterator.next(); | |
String servicName = axisService.getName().getLocalPart(); | |
%> <option align="left" value="<%=servicName%>"><%=servicName%></option> | |
<% | |
} | |
%> | |
</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> | |