Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
Nop. Gabriel Belingueres-2 wrote: > > Did you tried iterating using JSTL's forEach tag? > > 2008/8/28, Milan Milanovic <[EMAIL PROTECTED]>: >> >> O.K. One more thing, is it possible to define an array in jsp, where I >> will >> call set.toArray() and then to use this array (without calling toA

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Milan Milanovic wrote: > "Expensive", you got it. In terms of speed, of > course, because I need to do this 3-4 times in a jsp... Or you could do it once and use Or use a map. Or an array in the first place. And of course you could put it in the array in your action and use

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Gabriel Belingueres
Did you tried iterating using JSTL's forEach tag? 2008/8/28, Milan Milanovic <[EMAIL PROTECTED]>: > > O.K. One more thing, is it possible to define an array in jsp, where I will > call set.toArray() and then to use this array (without calling toArray() > every time) ? > > -- > Milan > > > > Al Sut

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
O.K. One more thing, is it possible to define an array in jsp, where I will call set.toArray() and then to use this array (without calling toArray() every time) ? -- Milan Al Sutton wrote: > > If I had a solution I would give it to you faster than that :). > > Maybe you need to approach the

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
If I had a solution I would give it to you faster than that :). Maybe you need to approach the problem from a different angle (i.e. display the data differently), or do some reworking in the action to put the data in a more friendly format. Milan Milanovic wrote: If you had solution, I'm sur

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
And everything always has a price, even if you don't what it costs it may still be the only way to get what you want. georz1 wrote: Probably not too expensive in terms of speed considering this has been going on for 9 days now On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic <[EMAIL PROTECTED]

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
If you had solution, I'm sure that we would solve it in 5mins. georz1 wrote: > > Probably not too expensive in terms of speed considering this has been > going > on for 9 days now > > On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic > <[EMAIL PROTECTED]>wrote: > >> >> "Expensive", you got it.

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread georz1
Probably not too expensive in terms of speed considering this has been going on for 9 days now On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic <[EMAIL PROTECTED]>wrote: > > "Expensive", you got it. In terms of speed, of course, because I need to do > this 3-4 times in a jsp...but we definitely s

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
"Expensive", you got it. In terms of speed, of course, because I need to do this 3-4 times in a jsp...but we definitely should think about goat sacrifices too. -- Milan Al Sutton wrote: > > Define "expesive"... Do you mean expensive?, if so expensive in what > terms; memory, speed, required

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread bhaarat Sharma
i love this discussion. On Thu, Aug 28, 2008 at 1:17 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > If been using toArray recently so it's been kind of a necessity. Have you > found a non-goat sacrificing optimisation? > > > Jim Kiley wrote: > >> Have you bought any goats lately? >> >> On Thu, Aug 28

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
If been using toArray recently so it's been kind of a necessity. Have you found a non-goat sacrificing optimisation? Jim Kiley wrote: Have you bought any goats lately? On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton <[EMAIL PROTECTED]> wrote: Define "expesive"... Do you mean expensive?, if so

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Jim Kiley
Have you bought any goats lately? On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > Define "expesive"... Do you mean expensive?, if so expensive in what terms; > memory, speed, required goat sacrifices? > > Al. > > Milan Milanovic wrote: > >> toArray() ? It works, but it is

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
Define "expesive"... Do you mean expensive?, if so expensive in what terms; memory, speed, required goat sacrifices? Al. Milan Milanovic wrote: toArray() ? It works, but it is too expesive ? Milan newton.dave wrote: --- On Thu, 8/28/08, Al Sutton wrote: C... I love a puzzle..

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
toArray() ? It works, but it is too expesive ? Milan newton.dave wrote: > > --- On Thu, 8/28/08, Al Sutton wrote: >> C... I love a puzzle.. >> >> Can you give us the 9 characters in an anagram?? > > A rotary? (Plus two non-alpha, but it's already too easy now.) > > Not having enoug

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Gabriel Belingueres
Interesting post I must say! I would try this: "share log" 2008/8/28, bhaarat Sharma <[EMAIL PROTECTED]>: > bahahaah @ making my data disappear! > > On Thu, Aug 28, 2008 at 11:26 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > > > --- On Thu, 8/28/08, Al Sutton wrote: > > > C... I love a puzzle

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread bhaarat Sharma
bahahaah @ making my data disappear! On Thu, Aug 28, 2008 at 11:26 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Thu, 8/28/08, Al Sutton wrote: > > C... I love a puzzle.. > > > > Can you give us the 9 characters in an anagram?? > > A rotary? (Plus two non-alpha, but it's already too

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Al Sutton wrote: > C... I love a puzzle.. > > Can you give us the 9 characters in an anagram?? A rotary? (Plus two non-alpha, but it's already too easy now.) Not having enough information sure is a pain, huh. Dave > > Dave Newton wrote: > > --- On Thu, 8/28/08, Mi

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Al Sutton
C... I love a puzzle.. Can you give us the 9 characters in an anagram?? Dave Newton wrote: --- On Thu, 8/28/08, Milan Milanovic wrote: "9-character JSP trick", what is this ? It's a clue that you could (potentially) solve [1] your issue by adding 9 characters to your JSP, wi

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
Dave, please add that 9 character here, please, I don't have time anymore to search for "clues"...I'm stuck with this for days know :-. newton.dave wrote: > > --- On Thu, 8/28/08, Milan Milanovic wrote: >> "9-character JSP trick", what is this ? > > It's a clue that you could (potentiall

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
gt; > >> > Dave >> > >> > --- On Wed, 8/27/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >> > >> >> From: Milan Milanovic <[EMAIL PROTECTED]> >> >> Subject: Re: [OT] Re: [S2] Iterate through two lists >> >&g

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
> Dave > > > > > > --- On Wed, 8/27/08, Milan Milanovic > <[EMAIL PROTECTED]> wrote: > > > > > >> From: Milan Milanovic > <[EMAIL PROTECTED]> > > >> Subject: Re: [OT] Re: [S2] Iterate through > two lists > > >> To:

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, Milan Milanovic wrote: > "9-character JSP trick", what is this ? It's a clue that you could (potentially) solve [1] your issue by adding 9 characters to your JSP, without having to change anything in the Java code. The Set Javadocs may help. Dave [1] ObCaveat: it's unteste

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread bhaarat Sharma
er JSP > trick > > would probably work. The solution is left as an exercise for the reader. > > > > Dave > > > > --- On Wed, 8/27/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > > > >> From: Milan Milanovic <[EMAIL PROTECTED]> > >

Re: [OT] Re: [S2] Iterate through two lists

2008-08-28 Thread Milan Milanovic
lan Milanovic <[EMAIL PROTECTED]> wrote: > >> From: Milan Milanovic <[EMAIL PROTECTED]> >> Subject: Re: [OT] Re: [S2] Iterate through two lists >> To: user@struts.apache.org >> Date: Wednesday, August 27, 2008, 4:50 PM >> I'm using TreeSet and my set

Re: [OT] Re: [S2] Iterate through two lists

2008-08-27 Thread Dave Newton
: Re: [OT] Re: [S2] Iterate through two lists > To: user@struts.apache.org > Date: Wednesday, August 27, 2008, 4:50 PM > I'm using TreeSet and my set objects are implementing > Comparable interface, > so they are ordered, aren't they ? Altough, I know that > Set doesn't h

Re: [OT] Re: [S2] Iterate through two lists

2008-08-27 Thread Milan Milanovic
I'm using TreeSet and my set objects are implementing Comparable interface, so they are ordered, aren't they ? Altough, I know that Set doesn't have get(index) method. O.K. I'll switch to List. Thx. -- Milan newton.dave wrote: > > --- On Wed, 8/27/08, Milan Milanovic wrote: >> I don't understa

[OT] Re: [S2] Iterate through two lists

2008-08-27 Thread Dave Newton
--- On Wed, 8/27/08, Milan Milanovic wrote: > I don't understand this, what are you saying that I > cannot use Set in jsp in this way ? What would it mean to get the nth index of a set??? Sets are unordered. Dave - To unsubscri