struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Radhakrishnan <Moh...@hclcomnet.co.in>
Subject RE: logic:iterate, length, offset
Date Sat, 14 Dec 2002 03:42:48 GMT
Hi,

			<logic:iterate ............  offset="0" length="10">

So you are doing it two times like this. Isn't it ?

			<logic:iterate ...........  offset="9" length="2">
Mohan
-----Original Message-----
From: Cathy Osekizoglu [mailto:hinbsls@yahoo.ca]
Sent: Saturday, December 14, 2002 1:40 AM
To: Struts Users Mailing List
Subject: logic:iterate, length, offset



 Hi: 
I have 12 items in a collection. I want to display the first 10 items on the
first page, and the rest 2 items in the next page. How can I control it
using logic:iterate tag. I used length="10" and offset="<%= pagerOffset%>"
as the attribute of logic:iterate. But it only show the first page(first 10
items)---I mean it only iterate over the first 10 items. After that, it
stops iterate. What's wrong? Could you help me out? Thank you for your help.

Regards, 
Cathy



---------------------------------
Post your free ad now! Yahoo! Canada Personals

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message