source: gs3-extensions/pharos/trunk/web/axis2-web/EngageToServiceGroup.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: 4.6 KB
Line 
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 contentType="text/html; charset=iso-8859-1" language="java" import="org.apache.axis2.Constants,
21 org.apache.axis2.description.AxisModule,
22 org.apache.axis2.description.AxisServiceGroup,
23 java.util.Collection" %>
24<%@ page import="java.util.HashMap"%>
25<%@ page import="java.util.Iterator"%>
26<jsp:include page="include/adminheader.jsp"></jsp:include>
27<%
28 String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS);
29 HashMap moduels = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
30 request.getSession().setAttribute(Constants.MODULE_MAP,null);
31 Collection moduleCol = moduels.values();
32 Iterator servicesGroups = (Iterator)request.getSession().getAttribute(Constants.SERVICE_GROUP_MAP);
33 request.getSession().setAttribute(Constants.SERVICE_GROUP_MAP,null);
34%>
35<h1>Engage Module for a Service Group</h1>
36<p>To engage a module for a set of services grouped as an axis service group,</p>
37
38 <ol>
39 <li>select the module you want to engage </li>
40 <li>select the axis service group you like the module to be engaged.</li>
41 <li>click "Engage".</li>
42 </ol>
43
44
45<%
46 if (!moduleCol.iterator().hasNext()) {%>
47 <p>No modules are present to be engaged.</p>
48 <%} else {
49 if (!servicesGroups.hasNext()) {%>
50 <p>No Axis service groups are present to be engaged.</p>
51 <%} else {
52%>
53<form method="get" name="selectModuleForm" action="axis2-admin/engageToServiceGroup">
54 <table border="0" width="100%" cellspacing="1" cellpadding="1">
55 <tr>
56 <td>Select a Module :</td>
57 </tr>
58 <tr>
59 <td>
60 <select name="modules">
61 <%
62 for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
63 AxisModule axisOperation = (AxisModule) iterator.next();
64 String modulename = axisOperation.getName();
65 %> <option align="left" value="<%=modulename%>"><%=modulename%></option>
66 <%
67 }
68 %>
69 </td>
70 </tr>
71 <tr>
72 <td>
73 &nbsp;
74 &nbsp;
75 </td>
76 </tr>
77 <tr>
78 <td>Select a Service Group :</td>
79 </tr>
80 <tr>
81 <td>
82 <select name="axisService">
83 <%
84
85 while(servicesGroups.hasNext()){
86 AxisServiceGroup axisServiceGroup = (AxisServiceGroup) servicesGroups.next();
87 String serviceName = axisServiceGroup.getServiceGroupName();
88 %> <option align="left" value="<%=serviceName%>"><%=serviceName%></option>
89 <%
90 }
91
92 %>
93 </select>
94 </td>
95 </tr>
96 <tr>
97 <td>
98 &nbsp;
99 &nbsp;
100 </td>
101 </tr>
102 <tr>
103 <td>
104 <input name="submit" type="submit" value=" Engage " >
105 </td>
106 </tr>
107 <tr>
108 <td>
109 &nbsp;
110 &nbsp;
111 </td>
112 </tr>
113 <tr>
114 <td>
115 &nbsp;
116 &nbsp;
117 </td>
118 </tr>
119 <tr>
120 <td>
121 <textarea cols="50" <%
122 if(status == null){
123 %>
124 style="display:none"
125 <%
126 } %>
127 ><%=status%></textarea>
128 </td>
129 </tr>
130 </table>
131</form>
132<%
133 }
134 }
135%>
136<jsp:include page="include/adminfooter.inc"></jsp:include>
137
Note: See TracBrowser for help on using the repository browser.