Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 10:46 PM
Member
 
Join Date: Feb 2008
Posts: 1
adil7 is on a distinguished road
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}">
<cut 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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-11-2008, 07:19 AM
Member
 
Join Date: Feb 2008
Posts: 2
malar is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +3. The time now is 04:40 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org