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