source: gs3-extensions/pharos/trunk/web/axis2-web/upload.jsp@ 20983

Last change on this file since 20983 was 20983, checked in by davidb, 14 years ago

Initial files for Phrasos extension to Greenstone3

File size: 2.6 KB
Line 
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=UTF-8" language="java" %>
21
22<jsp:include page="include/adminheader.jsp"/>
23<script type="text/javascript">
24<!--
25 function checkFileUpload(){
26 if (document.getElementById('serviceUpload').value == '') {
27 alert('Please select a file before clicking the upload button.');
28 return false;
29 } else {
30 document.Axis2upload.submit();
31 }
32 }
33//-->
34</script>
35<h1>Upload an Axis Service Archive File</h1>
36
37<p>You can upload a packaged Axis2 service from this page in two small steps.</p>
38<ul>
39 <li>Browse to the location and select the axis service archive file you wish to upload</li>
40 <li>Click "Upload" button</li>
41</ul>
42<p>Simple as that!</p>
43
44<% if ("success".equals(request.getAttribute("status"))) { %>
45<font color="green">File <%= request.getAttribute("filename") %> successfully uploaded </font><br/><br/>
46<%
47} else if ("failure".equals(request.getAttribute("status"))) {
48%>
49<font color="red">The following error occurred <br/> <%= request.getAttribute("cause") %></font><br/>
50<% } %>
51
52<form method="post" name="Axis2upload" id="Axis2upload" action="axis2-admin/upload"
53 enctype="multipart/form-data">
54 <table>
55 <tr>
56 <td>Service archive : </td>
57 <td><input id="serviceUpload" type="file" name="filename" size="50"/></td>
58 </tr>
59 <tr>
60 <td>&nbsp;</td>
61 <td><input name="upload" type="button" onclick="javascript:checkFileUpload();" value=" Upload "/></td>
62 </tr>
63 </table>
64</form>
65<blockquote>
66<p>Hot deployment of new service archives is <%=request.getAttribute("hotDeployment") %></p>
67<p>Hot update of existing service archives is <%=request.getAttribute("hotUpdate") %></p>
68</blockquote>
69<jsp:include page="include/adminfooter.inc"/>
Note: See TracBrowser for help on using the repository browser.