struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaarthy <>
Subject RE: Looping in Struts2
Date Thu, 28 Feb 2008 18:10:01 GMT

Can we pass dynamic values to the begin and end in c:forEach tag?


Allen, Daniel wrote:
> You mean in JSPs, using the Struts taglib? There's an example that I
> think is similar to what you're looking for at the bottom of the
> <s:iterator> page[1]. For large n, it would be sort of ugly, though, so
> definitely look into <c:foreach> like Dave said if you're going past
> single-digit n.
> ~Dan Allen
> [1]
> -----Original Message-----
> From: Jaarthy [] 
> Sent: Friday, February 22, 2008 4:52 PM
> To:
> Subject: Looping in Struts2
> Hello,
> Is there any way in Struts2 to display values from i=1 to n.
> Any help on this please?
> Thanks,
> Aarthy
> -- 
> This message may contain confidential, proprietary, or legally privileged
> information. No confidentiality or privilege is waived by any transmission
> to an unintended recipient. If you are not an intended recipient, please
> notify the sender and delete this message immediately. Any views expressed
> in this message are those of the sender, not those of any entity within
> the KBC Financial Products group of companies (together referred to as
> "KBC FP"). 
> This message does not create any obligation, contractual or otherwise, on
> the part of KBC FP. It is not an offer (or solicitation of an offer) of,
> or a recommendation to buy or sell, any financial product. Any prices or
> other values included in this message are indicative only, and do not
> necessarily represent current market prices, prices at which KBC FP would
> enter into a transaction, or prices at which similar transactions may be
> carried on KBC FP's own books. The information contained in this message
> is provided "as is", without representations or warranties, express or
> implied, of any kind. Past performance is not indicative of future
> returns.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message