aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-web/archiva-webapp/src/main/webapp
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2008-03-12 04:22:17 +0000
committerMaria Odea B. Ching <oching@apache.org>2008-03-12 04:22:17 +0000
commit19388a02a76ffe21a8f2d62d565d3f1ea557df5e (patch)
tree44b94a77d15d406ccb34714731a313229970c73c /archiva-web/archiva-webapp/src/main/webapp
parentfc91eda1e673e3220c62112e3b1a9d39769d60fa (diff)
downloadarchiva-19388a02a76ffe21a8f2d62d565d3f1ea557df5e.tar.gz
archiva-19388a02a76ffe21a8f2d62d565d3f1ea557df5e.zip
[MRM-216]
-moved the artifact upload fields into a separate form -added upload artifact in the navigation menu git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@636194 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-web/archiva-webapp/src/main/webapp')
-rw-r--r--archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp4
-rw-r--r--archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/uploadForm.jspf33
-rw-r--r--archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/upload.jsp14
3 files changed, 39 insertions, 12 deletions
diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
index 73e232074..679645c80 100644
--- a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/decorators/default.jsp
@@ -95,6 +95,10 @@
<li class="none">
<my:currentWWUrl action="browse" namespace="/">Browse</my:currentWWUrl>
</li>
+
+ <li class="none">
+ <my:currentWWUrl action="upload" namespace="/">Upload Artifact</my:currentWWUrl>
+ </li>
</ul>
<redback:ifAnyAuthorized permissions="archiva-manage-users,archiva-access-reports,archiva-manage-configuration">
diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/uploadForm.jspf b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/uploadForm.jspf
new file mode 100644
index 000000000..54f63c714
--- /dev/null
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/uploadForm.jspf
@@ -0,0 +1,33 @@
+<%--
+ ~ 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.
+ --%>
+
+<%-- http://www.opensymphony.com/webwork/wikidocs/File%20Upload%20Interceptor.html --%>
+
+<%@ taglib prefix="ww" uri="/webwork" %>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+<ww:textfield name="groupId" label="Group Id" size="50" required="true"/>
+<ww:textfield name="artifactId" label="Artifact Id" size="50" required="true"/>
+<ww:textfield name="version" label="Version" size="50" required="true"/>
+<ww:textfield name="packaging" label="Packaging" size="50" required="true"/>
+<ww:textfield name="classifier" label="Classifier" size="50" required="false"/>
+<ww:select list="#@java.util.LinkedHashMap@{'internal' : 'internal'}"
+ name="repositoryId" label="Repository Id"/>
+<ww:file name="upload" label="File"/>
+
diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/upload.jsp b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/upload.jsp
index b6360da74..a2818052c 100644
--- a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/upload.jsp
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/upload.jsp
@@ -21,8 +21,6 @@
<%@ taglib prefix="ww" uri="/webwork" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<%@ taglib prefix="archiva" uri="http://maven.apache.org/archiva" %>
-<%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
<html>
<head>
@@ -35,16 +33,8 @@
<h1>Upload Artifact</h1>
<div id="contentArea">
<ww:form action="doUpload" method="post" enctype="multipart/form-data">
- <p>groupId: <input type="text" name="groupId" size="50" value="" id="groupId"/></p>
- <p>artifactId: <input type="text" name="artifactId" size="50" value="" id="artifactId"/></p>
- <p>version: <input type="text" name="version" size="50" value="" id="version"/></p>
- <p>packaging: <input type="text" name="packaging" size="50" value="" id="packaging"/></p>
- <p>classifier: <input type="text" name="classifier" size="50" value="" id="classifier"/></p>
- <p>repositoryId: <input type="text" name="repositoryId" size="50" value="" id="repositoryId"/></p>
- <p>
- <ww:file name="upload" label="File"/>
- <ww:submit/>
- </p>
+ <%@ include file="/WEB-INF/jsp/include/uploadForm.jspf" %>
+ <ww:submit/>
</ww:form>
</div>