jsp - jstl foreach won't iterate a list -



jsp - jstl foreach won't iterate a list -

i want iterate list passed jsp via request scope.

this code tried :

<c:foreach items="${param.evaluateurs}" var="evaluateur"> <c:out value="${evaluateur.lastname}"></c:out> <c:out value="${evaluateur.fistname}"</c:out> </c:foreach>

but when run jsp see 1 entry, guess didn't iterate list.

but when utilize for loop works :

<% java.util.list<emaeval.statistic.doa.users> evaluateurs = (java.util.list<emaeval.statistic.doa.users>) request.getattribute("evaluateurs"); for(emaeval.statistic.doa.users evaluateur : evaluateurs) { %> <%= evaluateur.getfirstname() %> <%= evaluateur.getlastname() %> <% } %>

what wrong jstl method ?

in jstl param equivalent request.getparameter. have access request have iterate below

<c:foreach items="${evaluateurs}" var="evaluateur"> <c:out value="${evaluateur.lastname}"></c:out> <c:out value="${evaluateur.fistname}"</c:out> </c:foreach>

jsp java-ee jstl

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -