Hi,
thanks SO much for your prompt replies!
I tried all of your solutions:
<c:forEach items="${tablesList}" var="table">
<% Enumeration<String> attributes = request.getAttributeNames();
for(String attribute : attributes)
{
out.println(attribute + ": " + request.getAttribute(attribute) +
"<br/>\n");
}%>
<display:table name="table">
</display:table>
<br>
</c:forEach>
doesn't work, I get error "Can only iterate over an array or an instance of
Java.lang.iterable" and as I don't know this type I didn't go further in trying
but I will (Enumeration - is it from old Java versions? I only know enum)
Anyway I found the way to display the request attributes names: there are both
tablesList and table.
<c:forEach items="${tablesList}" var="table">
<display:table name="table">
</display:table>
<br>
</c:forEach>
This one displays four time the same table (the last list)
Same result I get inserting <c:set var="table" value="${tablesList}" /> inside
the forEach tag. I donno y??
About the question if set is in the request or in the session - you can specify
the scope like this:
<c:set var="table" value="${tablesList}" scope="page"/>
but same result with both scope= session, scope= page, scope= application.
Using scope=request u get tables filled with the word "false" :-)
Maybe it depends from the types of lists I'm using? I have an ArrayList, so I
will now try with a collection.
About this solution:
<c:forEach items="${tablesList}" var="table">
<display:table name="${table[index]}">
</display:table>
<br>
</c:forEach>
where am I supposed to declare the "index" variable? again using scripts?
Thank you very much,
Laura
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user