Salome HOME
Siman-WS eclipse project is added
[tools/siman.git] / Workspace / Siman-WS / WebContent / axis2-web / engagingtoanoperation.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 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.AxisOperation,
23                                                                              org.apache.axis2.util.Utils,
24                                                                              java.util.Collection,
25                                                                              java.util.HashMap,
26                                                                              java.util.Iterator"%>
27 <jsp:include page="include/adminheader.jsp"></jsp:include>
28 <%
29     String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS);
30 %>
31 <h1>Engage Module for an Operation</h1>
32 <p>To engage a module for an  axis operation,</p>
33     <ol>
34             <li>select the module you want to engage </li>
35             <li>select the axis operation you like the module to be engaged.</li>
36             <li>click "Engage".</li>
37         </ol>
38
39 <form method="get" name="selectModuleForm" action="axis2-admin/listOperations">
40 <table border="0" width="100%" cellspacing="1" cellpadding="1">
41     <tr>
42         <td>
43             &nbsp;
44             &nbsp;
45         </td>
46     </tr>
47     <tr>
48         <td>Select a Module :</td>
49     </tr>
50     <tr>
51         <td>
52             <select name="modules">
53             <%
54                 HashMap moduels = (HashMap)request.getSession().getAttribute(Constants.MODULE_MAP);
55                 request.getSession().setAttribute(Constants.MODULE_MAP,null);
56                 Collection moduleCol =  moduels.values();
57                 for (Iterator iterator = moduleCol.iterator(); iterator.hasNext();) {
58                     AxisModule axisOperation = (AxisModule) iterator.next();
59                     String modulename = axisOperation.getName();
60             %> <option  align="left" value="<%=modulename%>"><%=modulename%></option>
61              <%
62                 }
63              %>
64            </td>
65         </tr>
66         <tr>
67            <td>
68              &nbsp;
69              &nbsp;
70            </td>
71          </tr>
72          <tr>
73         <td>Select an Operation :</td>
74     </tr>
75     <tr>
76         <td>
77             <select name="axisOperation">
78             <%
79                 Iterator operations = (Iterator)request.getSession().getAttribute(Constants.OPERATION_MAP);
80                 while (operations.hasNext()) {
81                     AxisOperation axisOperationtion = (AxisOperation)operations.next();
82                     String opname = axisOperationtion.getName().getLocalPart();
83             %> <option  align="left" value="<%=opname%>"><%=opname%></option>
84              <%
85                 }
86                 request.getSession().setAttribute(Constants.OPERATION_MAP,null);
87              %>
88            </td>
89         </tr>
90         <tr>
91            <td>
92              &nbsp;
93              &nbsp;
94            </td>
95          </tr>
96          <tr>
97              <td>
98                 <input name="submit" type="submit" value=" Engage " >
99              </td>
100          </tr>
101          <tr>
102              <td>
103              &nbsp;
104              &nbsp;
105              </td>
106          </tr>
107          <tr>
108              <td>
109              &nbsp;
110              &nbsp;
111              </td>
112          </tr>
113          <tr>
114              <td>
115                 <textarea cols="50"  <%
116                         if(status == null){
117                            %>
118                             style="display:none"
119                             <%
120                         } %>
121                     ><%=Utils.sanitizeWebOutput(status)%></textarea>
122               </td>
123            </tr>
124       </table>
125    </form>
126 <jsp:include page="include/adminfooter.inc"></jsp:include>