Salome HOME
Siman-WS eclipse project is added
[tools/siman.git] / Workspace / Siman-WS / WebContent / axis2-web / InActivateService.jsp
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                  org.apache.axis2.description.AxisService,
22                  java.util.Collection,
23                  java.util.HashMap,
24                  java.util.Iterator"%>
25 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
26 <jsp:include page="include/adminheader.jsp"></jsp:include>
27 <h1>Deactivate Service</h1>
28 <form method="get" name="serviceInActivate" action="axis2-admin/deactivateService">
29   <table width="100%"  border="0">
30 <tr>
31   <td colspan="2" >
32      <p>Only the services that are active are listed below. Note that although you can activate a service from this page, once system is restarted the service will be active again</p>
33   </td>
34   </tr>
35   <tr>
36 <%
37 HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
38 Collection col = services.values();
39 String html = "";
40 int count = 0;
41
42 for (Iterator iterator = col.iterator(); iterator.hasNext();) {
43         AxisService axisServices = (AxisService) iterator.next();
44         if(axisServices.isActive()){
45                 count++;
46                 html += "<option value='" + axisServices.getName() + "'>";
47                 html += axisServices.getName() + "</option>";
48         }
49 }
50 request.getSession().setAttribute(Constants.SERVICE_MAP,null);
51 if (count > 0) {
52 %>
53
54     <td width="20%"> Select Service : </td>
55     <td width="80%">
56        <select name="axisService" class="selectBoxes">
57 <%=html%>
58                 </select>
59         </td>
60   </tr>
61   <tr>
62     <td width="20%">Deactivate Service </td>
63     <td width="80%"><input type="checkbox" name="turnoff">
64     </td>
65   </tr>
66   <tr>
67   <td>&nbsp;</td>
68   <td>
69     <input name="submit" type="submit" value=" Deactivate " >
70    <input name="reset" type="reset" value=" Clear " >
71   </td>
72 <%
73 } else {
74         %>
75         <td colspan="2">No active services present.</td>
76         <%
77 }
78 %>
79   </tr>
80
81 </table>
82 </form>
83 <jsp:include page="include/adminfooter.inc"></jsp:include>