Forums Register Login

Clarification for jstl <c:foreach> tag

+Pie Number of slices to send: Send
HI,
I am facing one issue regarding following scenario.

I am getting one array list to jsp page .I am using Jstl (<c:foreach>) for looping through Arraylist. But Arraylist contains Dto which intern contains Arraylist of Vo(value objects)

Problem : I am not able to access Arraylist which is available in Dto.

Code Sample


<c:forEach var="PresentationListDTO" begin="0" items="${modifyList}" step="1" varStatus="status">


<tr>
<td class="table_field"><cut value="${PresentationListDTO.request}"/></td>
<td class="table_field"><cut value="${PresentationListDTO.name}"/></td>
<td class="table_field"><cut value="${PresentationListDTO.company_desc}"/></td>
<td class="table_field"><cut value="${PresentationListDTO.location_desc}"/></td>
<td class="table_field"><cut value="${PresentationListDTO.office_desc}"/></td>
<td class="table_field"><cut value="${PresentationListDTO.dept_desc}"/></td>
<td class="table_field"><cut value="${PresentationListDTO.category_desc}"/></td>
<td>
<c:forEach var="PresentationListVo" begin="0" items="${PresentationListDTO.voList}" step="1">
<td class="table_field"><cut value="${PresentationListVo.item}"/></td>
</c:forEach>

</td>

</
</c:forEach>

Geiing error while executing Inner <c:foreach> loop.
error - "${PresentationListDTO.voList}": Unable to find a value for "voList" in object of class 'Dto class'
using operator "." (null)
+Pie Number of slices to send: Send
Duplicate thread
From next time onwards, please choose the forums carefully when posting queries.
+Pie Number of slices to send: Send
Hi Balagopal Kannampalli,
Sorry for mistake. I will take care this while posting next time. Thanks for inputs.
Honk if you love justice! And honk twice for tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 1416 times.
Similar Threads
jsp:useBean && forEach
pass jstl sql query result to jsp
Pagination in jsp
javax.servlet.ServletException: javax/el/ValueExpression
Binding to multi-D array
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:33:47.