I have this code:
<%@ include file="/WEB-INF/views/include.jsp" %>
<body>
<div class=col1>
<h1>Projects</h1>
<p>Selecciona un proyecto de la lista</p>
<h3>Projects</h3>
<c:forEach items="${model.projects}" var="project">
<a href="project_popup.htm" onclick=<% application.
setAttribute("project", project); %>>
<c:out value="${project.getProject().getName()}"/><br></a>
<c:out value="${project.getRol().getString()}"/><br>
<c:out value="${project.getDateStart()}"/><br>
<br><br>
</c:forEach>
</div>
</body>
line: <a href="project_popup.htm" onclick=<% application.setAttribute("project", project); %>>
, fails because project cannot be resolved into a variable even if it's on the foreach loop...
does anyone knows how to access those variables?
thanks