<%--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  --%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="/WEB-INF/include/adminheader.jsp"/>
<script type="text/javascript">
<!--
	function checkFileUpload(){
		if (document.getElementById('serviceUpload').value == '') {
			alert('Please select a file before clicking the upload button.');
			return false;
		} else {
			document.Axis2upload.submit();
		}
	}
//-->
</script>
<h1>Upload an Axis Service Archive File</h1>

<p>You can upload a packaged Axis2 service from this page in two small steps.</p>
<ul>
  <li>Browse to the location and select the axis service archive file you wish to upload</li>
  <li>Click "Upload" button</li>
</ul>
<p>Simple as that!</p>

<t:status/>

<form method="post" name="Axis2upload" id="Axis2upload" action="<c:url value="axis2-admin/doUpload"/>"
      enctype="multipart/form-data">
  <table summary="main content table">
    <tr>
      <td>Service archive : </td>
      <td><input id="serviceUpload" type="file" name="filename" size="50"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input name="upload" type="button" onclick="javascript:checkFileUpload();" value=" Upload "></td>
    </tr>
  </table>
</form>
<blockquote>
<p>Hot deployment of new service archives is <%=request.getAttribute("hotDeployment") %></p>
<p>Hot update of existing service archives is <%=request.getAttribute("hotUpdate") %></p>
</blockquote>
<jsp:include page="/WEB-INF/include/adminfooter.jsp"/>
