pour faire une nouvelle page : creer jsp ds jsp / mettre balise include/html/head/body et le contenu dans body. Sitemesh decorera la page automatiquement suivant le layout main.jsp dans decorators pour tte les url (du moins pour l'instant)
54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
<%@ include file="/WEB-INF/decorators/include.jsp"%>
|
|
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>articles to dispatch</th><th>members</th><th>members associate to the article</th>
|
|
</tr>
|
|
<c:forEach var="article" items="${articles}">
|
|
<tr>
|
|
<td>
|
|
<table>
|
|
<tr><td>title : ${article.title}
|
|
<br/> theme: ${article.topic}
|
|
<br/> author: ${article.mainAuthor}</td>
|
|
<td><a href="${article.URL_article}">download the article</a></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td>
|
|
<form:form commandName="formDispatcher">
|
|
|
|
<input name="idArticle" type="hidden" value="${article.id}" />
|
|
|
|
<form:select path="member">
|
|
<c:forEach var="m" items="${members}">
|
|
<option value="${m.login}">
|
|
${m.firstName} ${m.lastName}(0)
|
|
</option>
|
|
</c:forEach>
|
|
</form:select>
|
|
|
|
<input type="submit" value="add" />
|
|
</form:form>
|
|
</td>
|
|
<td>
|
|
<center>list is empty !</center>
|
|
<!--<c:forEach var="m" items="${members}">
|
|
<c:if test="${m.firstName=='max'}">
|
|
${m.firstName}${m.lastName}
|
|
</c:if>
|
|
</c:forEach>-->
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</table>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|