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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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
20 <%@ page import="org.apache.axis2.Constants,
21 org.apache.axis2.description.AxisService,
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">
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>
37 HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
38 Collection col = services.values();
42 for (Iterator iterator = col.iterator(); iterator.hasNext();) {
43 AxisService axisServices = (AxisService) iterator.next();
44 if(!axisServices.isActive()){
46 html += "<option value='" + axisServices.getName() + "'>";
47 html += axisServices.getName() + "</option>";
50 request.getSession().setAttribute(Constants.SERVICE_MAP,null);
54 <td width="20%"> Select Service : </td>
56 <select name="axisService" class="selectBoxes">
61 <td width="20%">Activate Service </td>
62 <td width="80%"><input type="checkbox" name="turnon">
68 <input name="submit" type="submit" value=" Activate " >
69 <input name="reset" type="reset" value=" Clear " >
74 <td colspan="2">No inactive services present.</td>
82 <jsp:include page="include/adminfooter.inc"></jsp:include>