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.AxisModule,
22
                 java.util.Collection,
23
                 java.util.HashMap,
24
                 java.util.Iterator" %>
25
<%@ page import="org.apache.axis2.util.Utils" %>
26
<html>
27
<jsp:include page="include/adminheader.jsp"/>
28
<%
29
    String status = (String) request.getSession().getAttribute(Constants.ENGAGE_STATUS);
30
%>
31
<h1>Engage Module Globally</h1>
32
 
33
<p>To engage a module on all services across the system, select a module from the combo box below
34
    and click on the "Engage" button. Any module that needs to place handlers into the pre-dispatch
35
    phase needs to be engaged globally.</p>
36
 
37
<form method="get" name="selectModuleForm" action="axis2-admin/engagingglobally">
38
    <table border="0" width="100%" cellspacing="1" cellpadding="1">
39
        <tr>
40
            <td width="15%">Select a Module :</td>
41
            <td width="75%" align="left">
42
                <select name="modules">
43
                    <%
44
                        HashMap modules = (HashMap) request.getSession().getAttribute(Constants.MODULE_MAP);
45
                        request.getSession().setAttribute(Constants.MODULE_MAP,null);
46
                        Collection moduleCol = modules.values();
47
                        for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
48
                            AxisModule axisOperation = (AxisModule) iterator.next();
49
                            String modulename = axisOperation.getName();
50
                    %>
51
                    <option align="left" value="<%=modulename%>"><%=modulename%>
52
                    </option>
53
                    <%
54
                        }
55
                    %>
56
                </select>
57
            </td>
58
        </tr>
59
        <tr><td>&nbsp;</td>
60
            <td>
61
                <input name="submit" type="submit" value=" Engage ">
62
            </td>
63
        </tr>
64
    </table>
65
</form>
66
<%
67
    if (status != null) {
68
%>
69
<p style="color:blue"><%=Utils.sanitizeWebOutput(status)%></p>
70
<%
71
    } %>
72
<jsp:include page="include/adminfooter.inc"/>