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

    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}"/>

    </c:forEach>
    </c:forEach>

    </display:table>


    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
    CList=CSummary[5]

    [0]=CSummary

    // and CSummary this i have two elements

    CAType="data"
    CType="data"






    Thank you,
    Adil

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

    Default

    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-17-2008, 12:06 AM
  2. Question regarding foreach loop...
    By theonlywalks in forum New To Java
    Replies: 2
    Last Post: 03-15-2008, 07:15 AM
  3. how to display image in jsp page(Struts)
    By rama6262 in forum Advanced Java
    Replies: 1
    Last Post: 12-21-2007, 08:50 AM
  4. Nested loops?
    By gabriel in forum New To Java
    Replies: 4
    Last Post: 08-06-2007, 05:51 PM
  5. Problems Struts-JSTL
    By Peter in forum Web Frameworks
    Replies: 2
    Last Post: 07-04-2007, 07: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
  •