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

Reply via email to