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