I'm trying to use JSTL to iterate over a collection to dynmically create tabs. Is this possible? I can't seem to get it to work. Please post a reply if you need more information.
Thanks in advance for your help.

Here is some code:

<c:set var="baseUrl"><html:rewrite forward="pictures"/></c:set>
<ajax:tabPanel panelStyleId="tabPanel" contentStyleId="tabContent"
currentStyleId="ajaxCurrentTab">
<c:set var="defaultVar" value="true"/>
<c:forEach items="${sessionScope.pictureObject}" var="row">
<ajax:tab caption="${row.firstName} ${row.lastName}"
baseUrl="${baseUrl}"
defaultTab="${defaultVar}"
parameters="pictureId=${row.pictureId}"/>
<c:set var="defaultVar" value="false"/>
</c:forEach>
</ajax:tabPanel>