Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Iterator Tag Help, Urgent !!

 
Lee Ozbun
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a Iterator Tag(JSP 1.1) which i'm using to iterate thru a collection of beans.I want to introduce another attribute to list the number of records to be displayed.How should i go about this? (code prefered please)
Thanx in advance,
Lee
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to introduce another attribute to list the number of records

Could you please elaborate on what you mean by this.
I am not sure I get what you are trying to say...
- satya
 
Lee Ozbun
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi madhav,
May be this bit of code from JSP could make things clear.
<iterate:iterator name="contact" collection="<%= company.getContacts()%>" type="Contact">
<TD align="center">
<jsp:getProperty name="contact" property="name"/>
</TD>
</iterate:iterator>
this tag iterates thru the property name and lists it.
So can i introduce one more attribute which that iterator tag can take say maxRecords="3" so that i can restrict the display to 3 records..

Thanx.
Lee
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!