How about:

<c:forEach items="${tablesList}" var="table"> 
    <display:table name="${table[index]}">
    </display:table>
    <br>
</c:forEach>

RB

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Laura Vigna
Sent: Wednesday, August 02, 2006 11:25 AM
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] List of lists of different objects using
thedisplay tag

Hi everybody!
I'm new in the list and I have a question.
I have different types of objects (that means, each object has different

attributes/properties).
Then I create a list for each type of objects, containing at least 3 of 
them.
Each list should result in a table in the jsp.
Then I create an ArrayList called tablesList containing all the above
lists.
I obtain the tablesList object through a Spring Controller in my Spring 
MVC Framework.
I'm using JSTL loop <c:forEach> to go through the different lists 
(tables) and the
<display> tag library to display each table.
Is there ANY way different than this one to do the job:

<% int i = 0; %>
<c:forEach items="${tablesList}" var="table"> 
    <% request.setAttribute("table", 
((ArrayList)request.getAttribute("tablesList")).get(i++)); %>
    <display:table name="table">
    </display:table>
    <br>
</c:forEach>

because we want to avoid inserting java code in the jsp.
Is it possible to do it with the expression language, or is there any 
function provided
by the display tag library? Or maybe using the decorators...
Thanks so much in advance for ANY hint!

Laura Vigna
Junior Java Developer
Happy Coding!


------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user




-------------------------------------------------------------------------
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
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to