Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 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>Turn On Service</h1>
28
<form method="get" name="serviceActivate" action="axis2-admin/activateService">
29
  <table width="100%"  border="0">
30
<tr>
31
  <td colspan="2" >
32
     <p>The services that are inactive are listed below. Although you can activate the services from this page, once system is restarted the services will be inactive 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
  </tr>
60
  <tr>
61
    <td width="20%">Activate Service </td>
62
    <td width="80%"><input type="checkbox" name="turnon">
63
    </td>
64
  </tr>
65
  <tr>
66
  <td>&nbsp;</td>
67
  <td>
68
    <input name="submit" type="submit" value=" Activate " >
69
   <input name="reset" type="reset" value=" Clear " >
70
  </td>
71
<%
72
} else {
73
	%>
74
	<td colspan="2">No inactive services present.</td>
75
	<%
76
}
77
%>
78
  </tr>
79
 
80
</table>
81
</form>
82
<jsp:include page="include/adminfooter.inc"></jsp:include>