Salome HOME
Siman-WS eclipse project is added
[tools/siman.git] / Workspace / Siman-WS / WebContent / axis2-web / SelectService.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 import="org.apache.axis2.Constants,
21                  org.apache.axis2.description.AxisService,
22                  java.util.Collection,
23                  java.util.HashMap,
24                  java.util.Iterator"%>
25 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
26 <jsp:include page="include/adminheader.jsp"></jsp:include>
27
28   <%
29       String action ="";
30       String buttonName="" ;
31       String status = (String)request.getSession().getAttribute(Constants.SELECT_SERVICE_TYPE);
32       String heading = "";
33       String disc = "";
34       if(status != null && status.equals("MODULE")) {
35           action = "listOperations";
36           buttonName = " View Operations";
37           heading = "Select a service to view operation specific chains";
38           disc = "Select an Axis service from the combo and click on the 'View Operations' button to view operation specific Chains.";
39       } else if(status != null && status.equals("VIEW")){
40           buttonName = " View ";
41           action = "viewServiceHandlers";
42           heading = "Select a service to view service handlers";
43           disc = "Select an Axis service from the combo and click on the 'View' button to view service handlers.";
44       } else if (status != null && status.equals("SERVICE_PARAMETER")){
45           buttonName = " Edit Parameters ";
46           action = "editServicePara"; // Constants.EDIR_SERVICE_PARA;
47           heading = "Select a Service to Edit Parameters";
48           disc = "Select an Axis service from the combo and click on the 'Edit Parameters' button to edit parameters.";
49       }
50   %>
51 <h1><%=heading%></h1>
52 <p><%=disc%></p>
53 <form method="get" name="selectServiceForm" action="axis2-admin/<%=action%>">
54 <table border="0" width="50%" cellspacing="1" cellpadding="1">
55          <tr>
56         <td width="35%">Select a Service :</td><td width="65%">
57             <select name="axisService">
58             <%
59                 HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
60                 Collection serviceCol =  services.values();
61                 for (Iterator iterator = serviceCol.iterator(); iterator.hasNext();) {
62                     AxisService axisService = (AxisService)iterator.next();
63                     String serviceName = axisService.getName();
64             %> <option  align="left" value="<%=serviceName%>"><%=serviceName%></option>
65              <%
66                 }
67                 request.getSession().setAttribute(Constants.SERVICE_MAP,null);
68              %>
69            </td>
70         </tr>
71         <tr><td colspan="2">&nbsp;</td></tr>
72         <tr><td>&nbsp;</td>
73              <td colspan="2" align="left">
74                 <input name="submit" type="submit" value="<%=buttonName%>" >
75              </td>
76          </tr>
77       </table>
78    </form>
79 <jsp:include page="include/adminfooter.inc"></jsp:include>