Changement de la méthode pour l'envoie du fichier...

This commit is contained in:
Frederic Debuire
2007-12-16 18:06:40 +00:00
parent ef43e20036
commit 0ed5989981
9 changed files with 69 additions and 127 deletions

View File

@@ -5,13 +5,25 @@
<head>
<title><fmt:message key="title" /></title>
<SCRIPT LANGUAGE="JavaScript">
function Ajouter(form) {
var o=new Option(form.mainauthor.value);
form.liste.options[form.liste.options.length]=o;
}
function Ajouter2(form) {
var o=new Option(form.secondaryauthor.value);
form.liste.options[form.liste.options.length]=o;
}
</SCRIPT>
</head>
<body>
<h2 align="center"><fmt:message key="submission.title" /></h2>
<form:form method="post" commandName="submissionArticle">
<form:form method="post" enctype="multipart/form-data" commandName="submissionArticle">
<fmt:message key="form.submission.article.title" /> <form:input path="title"/> <br/><br />
@@ -20,12 +32,21 @@
<hr /> <br />
<fmt:message key="form.submission.listauthor" /> <br /><br />
<fmt:message key="form.submission.mainauthor" /> <form:input path="mainauthor"/> <input type="submit" name="addMain" value=<fmt:message key="button.add" />> <br/><br />
<fmt:message key="form.submission.secondaryauthor" /> <form:input path="secondaryauthor"/> <input type="submit" name="addSecondary" value=<fmt:message key="button.add" />> <br/><br />
<fmt:message key="form.submission.mainauthor" /> <form:input path="mainauthor" />
<input type="button" name="addMain" onClick="Ajouter(this.form)" value=<fmt:message key="button.add" />> <br/><br />
<fmt:message key="form.submission.secondaryauthor" /> <form:input path="secondaryauthor" />
<input type="button" name="addSecondary" onClick="Ajouter2(this.form)" value=<fmt:message key="button.add" />> <br/><br />
<textarea name="AreaAuthor" rows=10 cols=40></textarea> <br />
<form:select path="liste" size="5" itemValue="test">
</form:select>
<br />
<hr /> <br />
<hr />
File : <input type="file" name="file"/>
<br /><br />
<input type="submit" value=<fmt:message key="button.cancel" />>
<input type="submit" value=<fmt:message key="button.OK" />> <br/><br/>

View File

@@ -1,45 +0,0 @@
<%@ page contentType="text/html" %>
<%@ page session="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form name="submitForm" method="post" enctype="multipart/form-data" action="submissionArticleOK.htm">
<table>
<c:if test="${fileUploaded}">
<p>File uploaded succesfully.</p>
<c:if test="${!empty(file)}">
<pre style="border: solid 1px;">${file}</pre>
</c:if>
</c:if>
<tr>
<td>
File:
</td>
<td>
<input type="file" name="file">
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" class="buttonBar">
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}">
<input type="submit" class="button" name="_eventId_submit" value="Upload">
</td>
</tr>
</table>
</form>
</body>
</html>