source: gs3-extensions/pharos/trunk/web/axis2-web/ListServiceGroup.jsp@ 20983

Last change on this file since 20983 was 20983, checked in by davidb, 14 years ago

Initial files for Phrasos extension to Greenstone3

File size: 2.6 KB
RevLine 
[20983]1<%--
2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
9 ~
10 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
17 ~ under the License.
18 --%>
19
20<%@ page import="org.apache.axis2.Constants" %>
21<%@ page import="org.apache.axis2.description.AxisModule" %>
22<%@ page import="org.apache.axis2.description.AxisService" %>
23<%@ page import="org.apache.axis2.description.AxisServiceGroup" %>
24<%@ page import="java.util.Collection" %>
25<%@ page import="java.util.Iterator" %>
26<%@ page contentType="text/html;charset=UTF-8" language="java" %>
27<jsp:include page="include/adminheader.jsp"/>
28<h1>Available Service Groups</h1>
29<%
30 Iterator axisServiceGroupIter = (Iterator) request.getSession().getAttribute(
31 Constants.SERVICE_GROUP_MAP);
32 request.getSession().setAttribute(Constants.SERVICE_GROUP_MAP,null);
33 while (axisServiceGroupIter.hasNext()) {
34 AxisServiceGroup axisServiceGroup = (AxisServiceGroup) axisServiceGroupIter.next();
35 String groupName = axisServiceGroup.getServiceGroupName();
36 Collection modules = axisServiceGroup.getEngagedModules();
37 Iterator axisServiceIter = axisServiceGroup.getServices();
38%>
39<h2><%=groupName%></h2><ul>
40 <%
41 while (axisServiceIter.hasNext()){
42 AxisService axisService = (AxisService) axisServiceIter.next();
43 String serviceName = axisService.getName();
44 %>
45 <li><font color="blue"><a href="axis2-admin/ListSingleService?serviceName=<%=serviceName%>">
46 <%=serviceName%></a></font></li>
47 <%
48 }
49 %>
50</ul>
51<%
52 if (modules.size() > 0) {
53%>
54<I>Engaged modules</I><ul>
55 <%
56 for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
57 AxisModule axisOperation = (AxisModule) iterator.next();
58 String modulDesc = axisOperation.getName();
59 %>
60 <li><%=modulDesc%></li>
61 <%
62 }
63 %></ul><%
64 }
65 }
66%>
67<jsp:include page="include/adminfooter.inc"/>
Note: See TracBrowser for help on using the repository browser.