Aww, you guys are making me sad :(

--- On Tue, 6/17/08, Al Sutton <[EMAIL PROTECTED]> wrote:

> From: Al Sutton <[EMAIL PROTECTED]>
> Subject: Re: (!) Simple for-next loops using <s:iterator...>, was: Re: [S2] 
> using <s:iterator> for a sequence of integers
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Date: Tuesday, June 17, 2008, 9:43 AM
> +100 for the for tag.
> 
> It'll mean I don't end up using displaytag and
> including the jar just to 
> show simple paged lists.
> 
> Musachy Barroso wrote:
> > Nice, and confusing :)
> >
> > //I think we should create a "for" tag
> >
> > musachy
> >
> > On Tue, Jun 17, 2008 at 9:38 AM, Dave Newton
> <[EMAIL PROTECTED]> wrote:
> >   
> >> From time to time people ask about implementing a
> simple loop using <s:iterator...> similar to
> <c:forEach begin="..."
> end="...">.
> >>
> >> Turns out there's some OGNL magic for doing
> simple loops (start at 0, go to n-1), and the significance
> of it never really struck me until the #this questions.
> >>
> >> <s:iterator value="(10).{ #this
> }">
> >>  Narnar
> >> </s:iterator>
> >>
> >> Aww yeah.
> >>
> >> Dave "OGNL FTW" Newton
> >>
> >> --- On Sat, 6/14/08, Pierre Thibaudeau
> <[EMAIL PROTECTED]> wrote:
> >>
> >>     
> >>> From: Pierre Thibaudeau
> <[EMAIL PROTECTED]>
> >>> Subject: [S2] using <s:iterator> for a
> sequence of integers
> >>> To: "Struts Users Mailing List"
> <user@struts.apache.org>
> >>> Date: Saturday, June 14, 2008, 10:26 PM
> >>> Is there a simple syntax with
> <s:iterator> or
> >>> <s:generator> for displaying a
> >>> sequence of integers from 0 to N-1 ?
> >>> (The value of N is not known at compile time.)
> >>>
> >>> At the moment, the only way I can think of
> doing this is
> >>> not very appealing:
> >>> Within the action, create an ArrayList and
> populate it with
> >>> the sequence of
> >>> integers.  Then iterate over that list with
> >>> <s:iterator>.
> >>>
> >>> Is there an easier way?  Something that would
> not involve
> >>> the action?
> >>>       
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
> >>     
> >
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to