You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by dh...@lexmark.com on 2001/05/01 18:48:06 UTC
RE: Iterate certain number of times?
Does anyone know if any of the other taglibs provides a for loop?
Dave
Donnie_Hall%enron.net@interlock.lexmark.com on 04/30/2001 01:27:07 PM
Please respond to struts-user%jakarta.apache.org@interlock.lexmark.com
To: struts-user%jakarta.apache.org@interlock.lexmark.com
cc: (bcc: David Hay/Lex/Lexmark)
Subject: RE: Iterate certain number of times?
Hey that's pretty cool. I got it working in about 10 minutes. One question
though. I had to move my iterate bean from Request to Session scope. Is there
any way to keep it at the request level?
Thanks,
Donnie Hall
|--------+-------------------------->
| | kbasel@freemail.|
| | absa.co.za |
| | |
| | 04/27/2001 03:21|
| | PM |
| | Please respond |
| | to struts-user |
| | |
|--------+-------------------------->
>----------------------------------------------------------------------------|
| |
| To: struts-user@jakarta.apache.org |
| cc: (bcc: Donnie Hall/Enron Communications) |
| Subject: RE: Iterate certain number of times? |
>----------------------------------------------------------------------------|
Hi,
There's a good pager taglib at jsptags.com. I've used it in a struts app and
does the job quite well when embedded in the iterate tags.
<logic:iterate>
<pg:item>
Item Details
</pg:item>
</logic:iterate>
Hope it helps,
karl
-----Original Message-----
From: dhay@lexmark.com [mailto:dhay@lexmark.com]
Sent: 27 April 2001 09:29
To: struts-user@jakarta.apache.org
Subject: Iterate certain number of times?
Hi.
Am wanting to iterate a certain number of times, based on a value in my form
bean, to create a set of page links for the number of pages the user can
view
(similar to at the bottom of most search engine results).
How do I do this with Struts? Obviously I am not iterating over a
collection.
But surely it is possible - what am I missing?
Many thanks,
Dave
RE: Iterate certain number of times?
Posted by Mac Ferguson <mf...@communicopia.com>.
jakarta taglibs has a utility:for tag - http://jakarta.apache.org/taglibs
Mac Ferguson
Senior Developer,
Communicopia Inc.
-----Original Message-----
From: shunhui zhu [mailto:shunhui_zhu@yahoo.com]
Sent: Tuesday, May 01, 2001 1:05 PM
To: struts-user@jakarta.apache.org
Subject: RE: Iterate certain number of times?
Hi, I have a similar problem. I'd like to use the
iterate tag to present a list of objects in a tabular
form, but I'd like to specify how many per row. Is
there an easy way to do that using only the tags?
Thanks.
Shunhui
--- dhay@lexmark.com wrote:
>
>
> Does anyone know if any of the other taglibs
> provides a for loop?
>
> Dave
>
>
>
>
>
> Donnie_Hall%enron.net@interlock.lexmark.com on
> 04/30/2001 01:27:07 PM
>
> Please respond to
> struts-user%jakarta.apache.org@interlock.lexmark.com
>
> To:
> struts-user%jakarta.apache.org@interlock.lexmark.com
> cc: (bcc: David Hay/Lex/Lexmark)
> Subject: RE: Iterate certain number of times?
>
>
>
>
>
> Hey that's pretty cool. I got it working in about
> 10 minutes. One question
> though. I had to move my iterate bean from Request
> to Session scope. Is there
> any way to keep it at the request level?
>
> Thanks,
> Donnie Hall
>
>
>
> |--------+-------------------------->
> | | kbasel@freemail.|
> | | absa.co.za |
> | | |
> | | 04/27/2001 03:21|
> | | PM |
> | | Please respond |
> | | to struts-user |
> | | |
> |--------+-------------------------->
>
>
>---------------------------------------------------------------------------
-|
> |
> |
> | To: struts-user@jakarta.apache.org
> |
> | cc: (bcc: Donnie Hall/Enron
> Communications) |
> | Subject: RE: Iterate certain number of
> times? |
>
>
>---------------------------------------------------------------------------
-|
>
>
>
> Hi,
>
> There's a good pager taglib at jsptags.com. I've
> used it in a struts app and
> does the job quite well when embedded in the iterate
> tags.
>
> <logic:iterate>
> <pg:item>
> Item Details
> </pg:item>
> </logic:iterate>
>
> Hope it helps,
> karl
>
> -----Original Message-----
> From: dhay@lexmark.com [mailto:dhay@lexmark.com]
> Sent: 27 April 2001 09:29
> To: struts-user@jakarta.apache.org
> Subject: Iterate certain number of times?
>
>
>
>
> Hi.
>
> Am wanting to iterate a certain number of times,
> based on a value in my form
> bean, to create a set of page links for the number
> of pages the user can
> view
> (similar to at the bottom of most search engine
> results).
>
> How do I do this with Struts? Obviously I am not
> iterating over a
> collection.
> But surely it is possible - what am I missing?
>
> Many thanks,
>
> Dave
>
>
>
>
>
>
>
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
RE: Iterate certain number of times?
Posted by shunhui zhu <sh...@yahoo.com>.
Hi, I have a similar problem. I'd like to use the
iterate tag to present a list of objects in a tabular
form, but I'd like to specify how many per row. Is
there an easy way to do that using only the tags?
Thanks.
Shunhui
--- dhay@lexmark.com wrote:
>
>
> Does anyone know if any of the other taglibs
> provides a for loop?
>
> Dave
>
>
>
>
>
> Donnie_Hall%enron.net@interlock.lexmark.com on
> 04/30/2001 01:27:07 PM
>
> Please respond to
> struts-user%jakarta.apache.org@interlock.lexmark.com
>
> To:
> struts-user%jakarta.apache.org@interlock.lexmark.com
> cc: (bcc: David Hay/Lex/Lexmark)
> Subject: RE: Iterate certain number of times?
>
>
>
>
>
> Hey that's pretty cool. I got it working in about
> 10 minutes. One question
> though. I had to move my iterate bean from Request
> to Session scope. Is there
> any way to keep it at the request level?
>
> Thanks,
> Donnie Hall
>
>
>
> |--------+-------------------------->
> | | kbasel@freemail.|
> | | absa.co.za |
> | | |
> | | 04/27/2001 03:21|
> | | PM |
> | | Please respond |
> | | to struts-user |
> | | |
> |--------+-------------------------->
>
>
>----------------------------------------------------------------------------|
> |
> |
> | To: struts-user@jakarta.apache.org
> |
> | cc: (bcc: Donnie Hall/Enron
> Communications) |
> | Subject: RE: Iterate certain number of
> times? |
>
>
>----------------------------------------------------------------------------|
>
>
>
> Hi,
>
> There's a good pager taglib at jsptags.com. I've
> used it in a struts app and
> does the job quite well when embedded in the iterate
> tags.
>
> <logic:iterate>
> <pg:item>
> Item Details
> </pg:item>
> </logic:iterate>
>
> Hope it helps,
> karl
>
> -----Original Message-----
> From: dhay@lexmark.com [mailto:dhay@lexmark.com]
> Sent: 27 April 2001 09:29
> To: struts-user@jakarta.apache.org
> Subject: Iterate certain number of times?
>
>
>
>
> Hi.
>
> Am wanting to iterate a certain number of times,
> based on a value in my form
> bean, to create a set of page links for the number
> of pages the user can
> view
> (similar to at the bottom of most search engine
> results).
>
> How do I do this with Struts? Obviously I am not
> iterating over a
> collection.
> But surely it is possible - what am I missing?
>
> Many thanks,
>
> Dave
>
>
>
>
>
>
>
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/