Results 1 to 2 of 2
  1. #1
    adil7 is offline Member
    Join Date
    Feb 2008
    Rep Power

    Default foreach in jstl to display nested colums-struts jsp

    Iam displaying Columns from Object which in turn has many feilds but this CList is an array other are simple object like fName lName etc...

    <display:table name="${form.results}" id="row" cellpadding="true">
    <display:column property="fName" value="${row.fName}"/>

    <c:forEach var="mycList" items="${cList}">
    <c:forEach var="myCSummary" items="${mycList.CSummary}">
    <c:out value="${myCSummary.cType}"/>

    <display:column property="cAType" value="${row.cAType}"/>
    <display:column property="cType" value="${row.cType}"/>



    I hope iam clear, Please reply can we use c:forEach to iterate through list of array object (CList)and which has CSummary , and CSummary has two elements CType and CAType.

    // for example


    // and CSummary this i have two elements


    Thank you,

  2. #2
    malar is offline Member
    Join Date
    Feb 2008
    Rep Power


    how to connet jsp with crystal report? i am using netbeans5.0 and tomcat server. i need source code to understand this concept.plz... anyboby help me.

Similar Threads

  1. How to use Foreach on an Array
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 11:06 PM
  2. Question regarding foreach loop...
    By theonlywalks in forum New To Java
    Replies: 2
    Last Post: 03-15-2008, 06:15 AM
  3. how to display image in jsp page(Struts)
    By rama6262 in forum Advanced Java
    Replies: 1
    Last Post: 12-21-2007, 07:50 AM
  4. Nested loops?
    By gabriel in forum New To Java
    Replies: 4
    Last Post: 08-06-2007, 04:51 PM
  5. Problems Struts-JSTL
    By Peter in forum Web Frameworks
    Replies: 2
    Last Post: 07-04-2007, 06:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts