modify Pattern view for error in eclipse, more complex but no error

This commit is contained in:
Nicolas Michard
2007-12-17 15:14:09 +00:00
parent 4152d4ed46
commit 508d43b438
10 changed files with 235 additions and 107 deletions

View File

@@ -1,5 +1,17 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<!--
<%@ page session="false" %> spring -> true par defaut
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
@@ -27,6 +39,14 @@
<input type="submit" value="<fmt:message key="button.OK"/>"/>
</c:if>
</form:form>
<a href="<c:url value="main.htm"/>">Home</a>
<jsp:include page="/WEB-INF/jsp/footer.jsp" />
<a href="<c:url value="main.htm"/>">Home</a>
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -1,7 +1,31 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page session="false" %>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<fmt:message key="preference.ok"/>
<jsp:include page="/WEB-INF/jsp/footer.jsp" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
<fmt:message key="preference.ok"/>
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -1,45 +1,60 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<!--
<%@ page session="false" %> spring -> true par defaut
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>dispatchArticles</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<br/>
<br/>
<br/>
<table>
<tr>
<th>articles to dispatch</th><th>members</th><th></th>
</tr>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
<table>
<tr>
<th>articles to dispatch</th><th>members</th><th></th>
</tr>
<c:forEach var="article" items="${articles}">
<tr>
<td>titre : ${article.title} <a href="${article.URL_article}">download the article</a></td>
<td>
<form:form commandName="formDispatcher">
<input name="idArticle" type="hidden" value="${article.id}" />
<form:select path="member">
<c:forEach var="member" items="${members}">
<form:option value="${member.login}">
${member.firstName}${member.lastName}
</form:option>
</c:forEach>
</form:select>
<input type="submit" value="add" />
</form:form>
</td>
<td>telecharger l'article</td>
</tr>
</c:forEach>
<tr>
<td>titre : ${article.title} <a href="${article.URL_article}">download the article</a></td>
<td>
<form:form commandName="formDispatcher">
<input name="idArticle" type="hidden" value="${article.id}" />
<form:select path="member">
<c:forEach var="member" items="${members}">
<form:option value="${member.login}">
${member.firstName}${member.lastName}
</form:option>
</c:forEach>
</form:select>
<input type="submit" value="add" />
</form:form>
</td>
<td>telecharger l'article</td>
</tr>
</c:forEach>
</table>
</body>
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -1,7 +0,0 @@
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -1,12 +1,4 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<div class="headerBloc">
<div class="content">
<img src="./images/yacos.logo.blancLQ.png" width="40%"/>
@@ -14,6 +6,3 @@
<div class="footer">&nbsp;</div>
</div>
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">

View File

@@ -1,9 +1,31 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page session="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
Main Page
<jsp:include page="/WEB-INF/jsp/footer.jsp" />
<div id="main_content">
Main Page
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -1,7 +1,7 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<div id="menu">
<div class="miniBloc">
<div class="header">Connexion</div>
<div class="header">Menu</div>
<div class="content">
<ul>
<li><a href="<c:url value="submissionArticle.htm"/>"><fmt:message key="submission.title" /></a></li>
@@ -18,5 +18,4 @@
</div>
<div class="footer">&nbsp;</div>
</div>
</div>
<div id="main_content">
</div>

View File

@@ -2,9 +2,32 @@
<!--
<%@ page session="false" %> spring -> true par defaut
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
VOTRE CONTENU ICI
<jsp:include page="/WEB-INF/jsp/footer.jsp" />
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -1,24 +1,35 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page session="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
<script language="JavaScript">
function Ajouter(form) {
var o=new Option(form.secondaryauthor.value);
form.liste.options[form.liste.options.length]=o;
}
function Supprimer(form) {
form.liste.options[form.liste.options.selectedIndex]=null;
}
</script>
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
<script language="JavaScript">
function Ajouter(form) {
var o=new Option(form.secondaryauthor.value);
form.liste.options[form.liste.options.length]=o;
}
function Supprimer(form) {
form.liste.options[form.liste.options.selectedIndex]=null;
}
</script>
<h2 align="center"><fmt:message key="submission.title" /></h2>
<form:form method="post" enctype="multipart/form-data" commandName="submissionArticle">
@@ -31,26 +42,34 @@ function Supprimer(form) {
<label for="listauthor"><fmt:message key="form.submission.listauthor" /></label> <br /><br />
<form:label path="mainauthor"><fmt:message key="form.submission.mainauthor" /></form:label> <form:input path="mainauthor" /> <br/><br />
<form:label path="secondaryauthor"><fmt:message key="form.submission.secondaryauthor" /></form:label> <form:input path="secondaryauthor" />
<form:label path="secondaryauthor"><fmt:message key="form.submission.secondaryauthor" /></form:label> <form:input path="secondaryauthor" />
<input type="button" name="addSecondary" onClick="Ajouter(this.form)" value=<fmt:message key="button.add" />> <br/><br />
<form:select path="liste" size="5" ondblclick="Supprimer(this.form)" multiple="true">
</form:select>
<form:select path="liste" size="5" ondblclick="Supprimer(this.form)" multiple="true">
</form:select>
<br /><br />
<hr />
<br />
File <input type="file" name="file"/>
<hr />
<br />
File <input type="file" name="file"/>
<br /><br />
<input type="reset" value="<fmt:message key="button.reset" />"/>
<input type="submit" value="<fmt:message key="button.OK" />"/> <br/><br/>
</form:form>
<a href="<c:url value="main.htm"/>">Home</a>
<jsp:include page="/WEB-INF/jsp/footer.jsp" />
<a href="<c:url value="main.htm"/>">Home</a>
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>

View File

@@ -1,8 +1,25 @@
<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ page session="false" %>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="title"/></title>
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
</head>
<body>
<jsp:include page="/WEB-INF/jsp/header.jsp" />
<div class="mainBloc">
<div class="header">&nbsp;</div>
<div class="content">
<jsp:include page="/WEB-INF/jsp/menu.jsp" />
<div id="main_content">
Soumission OK
<c:if test="${fileUploaded}">
@@ -14,4 +31,11 @@ Soumission OK
<a href="<c:url value="main.htm"/>">Home</a>
<jsp:include page="/WEB-INF/jsp/footer.jsp" />
</div>
</div>
<div class="footer">&nbsp;</div>
</div>
</body>
</html>