Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Clarification for jstl <c:foreach> tag

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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)
 
Ranch Hand
Posts: 136
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Duplicate thread
From next time onwards, please choose the forums carefully when posting queries.
 
vamsi Pabbisetty
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi Balagopal Kannampalli,
Sorry for mistake. I will take care this while posting next time. Thanks for inputs.
 
    Bookmark Topic Watch Topic
  • New Topic