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 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,
27 <jsp:include page="include/adminheader.jsp"></jsp:include>
29 String status = (String)request.getSession().getAttribute(Constants.ENGAGE_STATUS);
31 <h1>Engage Module for an Operation</h1>
32 <p>To engage a module for an axis operation,</p>
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>
39 <form method="get" name="selectModuleForm" action="axis2-admin/listOperations">
40 <table border="0" width="100%" cellspacing="1" cellpadding="1">
48 <td>Select a Module :</td>
52 <select name="modules">
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>
73 <td>Select an Operation :</td>
77 <select name="axisOperation">
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>
86 request.getSession().setAttribute(Constants.OPERATION_MAP,null);
98 <input name="submit" type="submit" value=" Engage " >
115 <textarea cols="50" <%
121 ><%=Utils.sanitizeWebOutput(status)%></textarea>
126 <jsp:include page="include/adminfooter.inc"></jsp:include>