blob: 24c0de15169effc8c0878d3f045081d442f75d23 [file] [log] [blame]
<%@ page import="java.util.HashMap,
org.apache.axis.Constants,
java.util.Collection,
java.util.Iterator,
org.apache.axis.description.ModuleDescription,
org.apache.axis.description.ServiceDescription"%>
<%
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
/**
* Author : Deepal Jayasinghe
* Date: May 26, 2005
* Time: 7:14:26 PM
*/
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Simple jsp page</title></head>
<body>
<%
String action ="";
String buttonName="" ;
String status = (String)request.getSession().getAttribute(Constants.MODULE_ENGAMENT);
if(status != null && status.equals("Yes")) {
action = "listOperations";
buttonName = " View Operations";
} else {
buttonName = " View ";
action = "viewServiceHandlers";
}
%>
<form method="get" name="engaginModule" action="<%=action%>">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</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>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
<input name="submit" type="submit" value="<%=buttonName%>" >
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;
&nbsp;
</td>
</tr>
</table>
</form>
</body>
</html>