This commit is contained in:
Frederic Debuire
2007-12-14 14:57:31 +00:00
parent b8f073ac91
commit a380ecebef
5 changed files with 109 additions and 6 deletions

View File

@@ -12,6 +12,8 @@
<h2 align="center"><fmt:message key="submission.title" /></h2>
<form:form method="post" commandName="submissionArticle">
<fmt:message key="form.submission.article.title" /> <form:input path="title"/> <br/><br />
<fmt:message key="form.submission.article.theme" /> <form:input path="theme"/> <br/><br />
@@ -25,9 +27,9 @@
<hr /> <br />
<fmt:message key="form.submission.file" /> <form:input path="file"/> <input type="submit" value="Parcourir"> <br/><br />
<input type="submit" value=<fmt:message key="button.cancel" />>
<input type="submit" value=<fmt:message key="button.OK" />> <br/><br/>
</form:form>

View File

@@ -0,0 +1,45 @@
<%@ 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>

View File

@@ -1,5 +1,7 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ 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"%>
<%@ page session="true" %>
<html>
@@ -11,6 +13,13 @@
Soumission OK
<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>
<a href="<c:url value="main.htm"/>">Home</a>
</body>