Files
yacos/YACOSWeb/WebContent/WEB-INF/jsp/choosePreference.jsp
Frederic Debuire 21842924fd Diverse modif
Policy failures:   
Code warning
- failed on resource ValidateSubmission.java. Reason: Class is a raw type. References to generic type Class<T> should be parameterized, line 10
- failed on resource DispatchArticleController.java. Reason: HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized, line 72
- failed on resource DispatchArticleController.java. Reason: Map is a raw type. References to generic type Map<K,V> should be parameterized, line 70
- failed on resource DispatchArticleController.java. Reason: Map is a raw type. References to generic type Map<K,V> should be parameterized, line 72
- failed on resource DispatchArticleController.java. Reason: The import java.util.ArrayList is never used, line 3
... and more.  
Override reason:   
hu
2008-02-04 16:55:43 +00:00

42 lines
1.3 KiB
Plaintext

<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<body>
<h2 align="center"><fmt:message key="preference.title" /></h2>
<c:if test="${message}">
<fmt:message key="message"/>
huhu
</c:if>
<form:form method="post" commandName="choosePreference">
<c:if test="${not empty articleList}">
<table>
<c:forEach items="${articleList}" var="article" varStatus="i">
<tr>
<td><a href="<c:url value="detailArticle.htm"/>">${article.title}</a></td>
<form:hidden path="preferences[${i.index}].article.id" />
<form:hidden path="preferences[${i.index}].pcMember.login" />
<td><fmt:message key="preference.like"/></td>
<td><form:radiobutton path="preferences[${i.index}].preference" value="Like"/></td>
<td><fmt:message key="preference.indifferent"/></td>
<td><form:radiobutton path="preferences[${i.index}].preference" value="Indifferent"/></td>
<td><fmt:message key="preference.dislike"/></td>
<td><form:radiobutton path="preferences[${i.index}].preference" value="Dislike"/></td>
</tr>
</c:forEach>
</table>
<input type="submit" name="submit" value="<fmt:message key="button.OK"/>"/>
</c:if>
</form:form>
<a href="<c:url value="main.htm"/>">Home</a>
</body>
</html>