I'd go with the JSTL loop rather than the struts loop.
Struts actually deprecated their loop tag in favour of the JSTL one.
Struts and JSTL tags work together without a problem.
EL also makes available some implicit variables: pageScope, requestScope, sessionScope, applicationScope which are maps of the attributes in each scope.
That is easier than using the methods on the request object.
Here is a JSP snippet that will print out all the variables in page scope plus their value
Joined: Apr 10, 2012
Thanks. Any tricks available to iterate over the different scopes (page, request, appl, session) via jslt?