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

2008-08-28 Thread Milan Milanovic

9-character JSP trick, what is this ?

--
Milan


newton.dave wrote:
 
 If the underlying implementation is ordered then the 9-character 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]
 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 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 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 unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19189459.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19202118.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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

2008-08-28 Thread bhaarat Sharma
its magic.

On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic [EMAIL PROTECTED]
 wrote:


 9-character JSP trick, what is this ?

 --
 Milan


 newton.dave wrote:
 
  If the underlying implementation is ordered then the 9-character 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]
  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 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 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 unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19189459.html
  Sent from the Struts - User mailing list archive at
  Nabble.com.
 
 
  -
  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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19202118.html
 Sent from the Struts - User mailing list archive at Nabble.com.


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




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 untested with your particular data and implementation.


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



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

2008-08-28 Thread Dave Newton
--- On Thu, 8/28/08, bhaarat Sharma wrote:
 its magic.

I've been accused of writing magic OGNL :/

Unfortunately lots of my tricks end with make my data disappear ;)

Dave

 On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic wrote:
  9-character JSP trick, what is this ?
 
  newton.dave wrote:
  
   If the underlying implementation is ordered then
 the 9-character 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]
   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 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 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 unsubscribe, e-mail:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19189459.html
   Sent from the Struts - User mailing list
 archive at
   Nabble.com.
  
  
  
 -
   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]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19202118.html
  Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 
 -
  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]



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

2008-08-28 Thread Milan Milanovic

You are maybe familiar with this magic ?! If so, please let us know.


omnipresent wrote:
 
 its magic.
 
 On Thu, Aug 28, 2008 at 10:43 AM, Milan Milanovic
 [EMAIL PROTECTED]
 wrote:
 

 9-character JSP trick, what is this ?

 --
 Milan


 newton.dave wrote:
 
  If the underlying implementation is ordered then the 9-character 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]
  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 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 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 unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19189459.html
  Sent from the Struts - User mailing list archive at
  Nabble.com.
 
 
  -
  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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19202118.html
 Sent from the Struts - User mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19202445.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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 (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 untested with your particular data and implementation.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19202510.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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, without having to change anything in the Java code. The 
Set Javadocs may help.

Dave

[1] ObCaveat: it's untested with your particular data and implementation.


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

  



--
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



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, 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 untested with your particular
 data and implementation.
 
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 

 
 
 -- 
 Al Sutton
 
 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton
 
 
 -
 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]



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 easy now.)

 Not having enough information sure is a pain, huh.

 Dave

 
  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, without
  having to change anything in the Java code. The Set Javadocs
  may help.
  
   Dave
  
   [1] ObCaveat: it's untested with your particular
  data and implementation.
  
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
  --
  Al Sutton
 
  W: www.alsutton.com
  B: alsutton.wordpress.com
  T: twitter.com/alsutton
 
 
  -
  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]




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..
  
   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, 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 untested with your particular
   data and implementation.
   
   
   
   -
To unsubscribe, e-mail:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
   --
   Al Sutton
  
   W: www.alsutton.com
   B: alsutton.wordpress.com
   T: twitter.com/alsutton
  
  
   -
   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]



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 enough information sure is a pain, huh.
 
 Dave
 
 
 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, without
 having to change anything in the Java code. The Set Javadocs
 may help.
 
  Dave
 
  [1] ObCaveat: it's untested with your particular
 data and implementation.
 
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 

 
 
 -- 
 Al Sutton
 
 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19204971.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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..

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, 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 untested with your particular


data and implementation.
  




-
  

To unsubscribe, e-mail:


[EMAIL PROTECTED]
  

For additional commands, e-mail:


[EMAIL PROTECTED]
  
  


--
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


-
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]






  



--
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



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 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 enough information sure is a pain, huh.

 Dave



 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, without
 having to change anything in the Java code. The Set Javadocs
 may help.


 Dave

 [1] ObCaveat: it's untested with your particular


 data and implementation.





 -


 To unsubscribe, e-mail:


 [EMAIL PROTECTED]


 For additional commands, e-mail:


 [EMAIL PROTECTED]




 --
 Al Sutton

 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton


 -
 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]










 --
 Al Sutton

 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton


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




-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


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 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..

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, 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 untested with your particular




data and implementation.


  




-


  

To unsubscribe, e-mail:




[EMAIL PROTECTED]


  

For additional commands, e-mail:




[EMAIL PROTECTED]


  


--
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


-
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]








  

--
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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






  



--
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



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, 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 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 enough information sure is a pain, huh.

 Dave





 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, without
 having to change anything in the Java code. The Set Javadocs
 may help.




 Dave

 [1] ObCaveat: it's untested with your particular




 data and implementation.







 -




 To unsubscribe, e-mail:




 [EMAIL PROTECTED]




 For additional commands, e-mail:




 [EMAIL PROTECTED]






 --
 Al Sutton

 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton


 -
 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]










 --
 Al Sutton

 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton


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










 --
 Al Sutton

 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton


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




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 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..

 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, 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 untested with your particular
 
 data and implementation.
   

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

 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton


 -
 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]



 

   
 
 
 -- 
 Al Sutton
 
 W: www.alsutton.com
 B: alsutton.wordpress.com
 T: twitter.com/alsutton
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19205506.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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 should think about goat
 sacrifices too.

 --
 Milan





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. 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



 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19207202.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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]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 should think about goat
sacrifices too.

--
Milan






  



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



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 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. 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



  



  



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



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 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 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. 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



   
 

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

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19208018.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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 Sutton wrote:
 
  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 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. 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
 
 
 
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19208018.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 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]



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 s:set...

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 it that way; I can't even really think of any 
reasons why I'd think I couldn't.

Dave


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



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 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 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 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. 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
 
 
 
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19208018.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19208941.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-27 Thread Milan Milanovic

Hi Dave,

I don't understand this, what are you saying that I cannot use Set in jsp in
this way ?
Is there any other solution ?

--
Thx, Milan



newton.dave wrote:
 
 --- On Tue, 8/26/08, Dave Newton [EMAIL PROTECTED] wrote:
 (And even if you can't or don't want to fix it on the server-side, 
 it's a 9-character fix on the JSP side.)
 
 (Although it's not likely to do what you want.)
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19185642.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



[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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Iterate through two lists

2008-08-27 Thread Martin Gainty

try the simplest of scenarios such as
html
head
titlethis is for milan/title
/head
body

s:iterator status=stat value={1,2,3,4,5} 
   !-- reference the index (start with 0 ... ) --
   s:property value=#stat.index /

   !-- reference the top of the stack which should be the --
   !-- current iteration value (0, 1, ... 5) --
   s:property value=top /
/s:iterator
/body
/html

then make that example MORE complex as needed
different collection datatypes
ww:bean name=com.opensymphony.webwork.example.IteratorExample id=it
  ww:param name=day value='foo'/
  ww:param name=day value='bar'/
/ww:bean
p/
table border=0 cellspacing=0 cellpadding=1
tr
  thDays of the week/th
/tr
p/
ww:iterator value=#it.days status=rowstatus
  tr
ww:if test=#rowstatus.odd == true
  td style=background: greyww:property//td
/ww:if
ww:else
  tdww:property//td
/ww:else
  /tr
/ww:iterator
/table
then acquire values from bean defined in container:
webwork:iterator value=groupDao.groups status=groupStatus

tr class=webwork:if test=#groupStatus.odd == true 
odd/webwork:ifwebwork:elseeven/webwork:else

tdwebwork:property value=name //td

tdwebwork:property value=description //td

td
webwork:iterator value=users 
status=userStatus

webwork:property value=fullName /
webwork:if test=!#userStatus.last,/webwork:if

/webwork:iterator

/td

/tr

/webwork:iterator

http://svn.opensymphony.com/svn/webwork/tags/webwork_2-2/docs/wikidocs/iterator.html

HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Wed, 27 Aug 2008 10:48:42 -0700
 From: [EMAIL PROTECTED]
 To: user@struts.apache.org
 Subject: Re: [S2] Iterate through two lists
 
 
 Hi Dave,
 
 I don't understand this, what are you saying that I cannot use Set in jsp in
 this way ?
 Is there any other solution ?
 
 --
 Thx, Milan
 
 
 
 newton.dave wrote:
  
  --- On Tue, 8/26/08, Dave Newton [EMAIL PROTECTED] wrote:
  (And even if you can't or don't want to fix it on the server-side, 
  it's a 9-character fix on the JSP side.)
  
  (Although it's not likely to do what you want.)
  
  Dave
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19185642.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/

RE: [S2] Iterate through two lists

2008-08-27 Thread Dave Newton
You managed three different taglib prefixes in one email; that's gotta be some 
sort of record.


--- On Wed, 8/27/08, Martin Gainty [EMAIL PROTECTED] wrote:

 From: Martin Gainty [EMAIL PROTECTED]
 Subject: RE: [S2] Iterate through two lists
 To: Struts Users Mailing List user@struts.apache.org
 Date: Wednesday, August 27, 2008, 4:35 PM
 try the simplest of scenarios such as
 html
 head
 titlethis is for milan/title
 /head
 body
 
 s:iterator status=stat
 value={1,2,3,4,5} 
!-- reference the index (start with 0 ... ) --
s:property value=#stat.index /
 
!-- reference the top of the stack which should be
 the --
!-- current iteration value (0, 1, ... 5) --
s:property value=top /
 /s:iterator
 /body
 /html
 
 then make that example MORE complex as needed
 different collection datatypes
 ww:bean
 name=com.opensymphony.webwork.example.IteratorExample
 id=it
   ww:param name=day
 value='foo'/
   ww:param name=day
 value='bar'/
 /ww:bean
 p/
 table border=0 cellspacing=0
 cellpadding=1
 tr
   thDays of the week/th
 /tr
 p/
 ww:iterator value=#it.days
 status=rowstatus
   tr
 ww:if test=#rowstatus.odd == true
   td style=background:
 greyww:property//td
 /ww:if
 ww:else
   tdww:property//td
 /ww:else
   /tr
 /ww:iterator
 /table
 then acquire values from bean defined in container:
 webwork:iterator value=groupDao.groups
 status=groupStatus
   
 tr class=webwork:if
 test=#groupStatus.odd == true
 odd/webwork:ifwebwork:elseeven/webwork:else
   
 tdwebwork:property value=name
 //td
   
 tdwebwork:property
 value=description //td
   
 td
   webwork:iterator value=users
 status=userStatus
   
 webwork:property value=fullName /
 webwork:if
 test=!#userStatus.last,/webwork:if
   
 /webwork:iterator
   
 /td
   
 /tr
   
 /webwork:iterator
 
 http://svn.opensymphony.com/svn/webwork/tags/webwork_2-2/docs/wikidocs/iterator.html
 
 HTH
 Martin 
 __ 
 Disclaimer and confidentiality note 
 Everything in this e-mail and any attachments relates to
 the official business of Sender. This transmission is of a
 confidential nature and Sender does not endorse distribution
 to any party other than intended recipient. Sender does not
 necessarily endorse content contained within this
 transmission. 
 
 
  Date: Wed, 27 Aug 2008 10:48:42 -0700
  From: [EMAIL PROTECTED]
  To: user@struts.apache.org
  Subject: Re: [S2] Iterate through two lists
  
  
  Hi Dave,
  
  I don't understand this, what are you saying that
 I cannot use Set in jsp in
  this way ?
  Is there any other solution ?
  
  --
  Thx, Milan
  
  
  
  newton.dave wrote:
   
   --- On Tue, 8/26/08, Dave Newton
 [EMAIL PROTECTED] wrote:
   (And even if you can't or don't want
 to fix it on the server-side, 
   it's a 9-character fix on the JSP side.)
   
   (Although it's not likely to do what you
 want.)
   
   Dave
   
   
  
 -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
   
   
   
  
  -- 
  View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19185642.html
  Sent from the Struts - User mailing list archive at
 Nabble.com.
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 _
 Get thousands of games on your PC, your mobile phone, and
 the web with Windows®.
 http://clk.atdmt.com/MRT/go/108588800/direct/01/

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



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 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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19189459.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



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

2008-08-27 Thread Dave Newton
If the underlying implementation is ordered then the 9-character 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]
 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 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 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 unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19189459.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]



Re: [S2] Iterate through two lists

2008-08-26 Thread Milan Milanovic

Dear Dave,

I tried everything nad I always got null values. I think that I have similar
problem as here:  http://www.nabble.com/More-OGNL-Woes-td18877994.html
http://www.nabble.com/More-OGNL-Woes-td18877994.html , altough without
importing. I tried all of these syntax and it doesn't work, I tried even
without params' name attribute.

I'm stuck here with my project for days now :-((.

--
Milan



newton.dave wrote:
 
 ...
 
 I already knew the JSP that was causing the error.
 
 Dave
 
 --- On Mon, 8/25/08, Milan Milanovic [EMAIL PROTECTED] wrote:
 
 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Monday, August 25, 2008, 1:10 PM
 Hi Dave,
 
 here is complete jsp:
 
 s:iterator value=activeOrder.orderList
 status=rowstatus
tr id=row_s:property
 value=reference/
 class=odd
td
  s:text name=order.ref 
  s:param name=value
 value=reference/  - THIS WORKS
   /s:text
  
/td
s:if test=#session.order != null
 - order in session is
 recognized
  td 
  s:text name=order.price  
  s:param name=value
 value=#session.order.orderList[#rowstatus.index].price/
 - null values
  /s:text
  /td 
 /s:if 
 td 
  s:text name=order.price  
  s:param name=value
 value=price/ - HERE IT WORKS, from
 activeOrder.
  /s:text
 /td 
   /tr
 /s:iterator
 
 I checked many times if I have orderList in my session and
 I have orderList
 in it filled.
 
 --
 Milan
 
 
 newton.dave wrote:
  
  --- On Mon, 8/25/08, Milan Milanovic wrote:
  s:if test=#session.order !=
 null  
  - HERE IT WORKS (order is recognized
  in session)!!
 td
 s:text name=order.price
 
s:param
 name=value
 
 value=#session.order.orderList[#rowstatus.index].price/
  - HERE IT
  DOESN'T WORK - null value!
  /s:text
 /td
  /s:if
  
  IT is two *entirely different
 expressions*, and you continue to provide
  no additional information that might be usable to
 solve the problem. It's
  not an OGNL syntax issue. If you want more help,
 provide more details.
  
  (IIRC I also didn't use s:param...'s
 name attribute; I don't think
  it's necessary, although I don't know if the
 presence of it will cause the
  message to be parameterized incorrectly.)
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147809.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19164005.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-26 Thread Dave Newton
Without knowing what the data is you're using there's no way to be of any 
further assistance.

If the backing data is there the syntax provided (and IIRC Stephan was also 
able to use), AFAICT, works fine. Without knowing the differences between my 
code, which works fine, and yours, there's not much else to say.

Dave

--- On Tue, 8/26/08, Milan Milanovic [EMAIL PROTECTED] wrote:

 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Tuesday, August 26, 2008, 11:13 AM
 Dear Dave,
 
 I tried everything nad I always got null values. I think
 that I have similar
 problem as here: 
 http://www.nabble.com/More-OGNL-Woes-td18877994.html
 http://www.nabble.com/More-OGNL-Woes-td18877994.html ,
 altough without
 importing. I tried all of these syntax and it doesn't
 work, I tried even
 without params' name attribute.
 
 I'm stuck here with my project for days now :-((.
 
 --
 Milan
 
 
 
 newton.dave wrote:
  
  ...
  
  I already knew the JSP that was causing the error.
  
  Dave
  
  --- On Mon, 8/25/08, Milan Milanovic
 [EMAIL PROTECTED] wrote:
  
  From: Milan Milanovic
 [EMAIL PROTECTED]
  Subject: Re: [S2] Iterate through two lists
  To: user@struts.apache.org
  Date: Monday, August 25, 2008, 1:10 PM
  Hi Dave,
  
  here is complete jsp:
  
  s:iterator
 value=activeOrder.orderList
  status=rowstatus
 tr id=row_s:property
  value=reference/
  class=odd
 td
 s:text name=order.ref 
 s:param name=value
  value=reference/  - THIS WORKS
  /s:text
 
 /td
 s:if test=#session.order !=
 null
  - order in session is
  recognized
 td 
 s:text name=order.price  
 s:param name=value
 
 value=#session.order.orderList[#rowstatus.index].price/
  - null values
 /s:text
 /td 
  /s:if 
  td 
 s:text name=order.price  
 s:param name=value
  value=price/ - HERE IT WORKS,
 from
  activeOrder.
 /s:text
  /td 
/tr
  /s:iterator
  
  I checked many times if I have orderList in my
 session and
  I have orderList
  in it filled.
  
  --
  Milan
  
  
  newton.dave wrote:
   
   --- On Mon, 8/25/08, Milan Milanovic wrote:
   s:if test=#session.order !=
  null  
   - HERE IT WORKS (order is recognized
   in session)!!
  td
  s:text
 name=order.price
  
 s:param
  name=value
  
 
 value=#session.order.orderList[#rowstatus.index].price/
   - HERE IT
   DOESN'T WORK - null value!
   /s:text
  /td
   /s:if
   
   IT is two *entirely different
  expressions*, and you continue to provide
   no additional information that might be
 usable to
  solve the problem. It's
   not an OGNL syntax issue. If you want more
 help,
  provide more details.
   
   (IIRC I also didn't use
 s:param...'s
  name attribute; I don't think
   it's necessary, although I don't know
 if the
  presence of it will cause the
   message to be parameterized incorrectly.)
   
   Dave
   
   
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
   
  
  -- 
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147809.html
  Sent from the Struts - User mailing list archive
 at
  Nabble.com.
  
  
 
 -
  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]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19164005.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]



Re: [S2] Iterate through two lists

2008-08-26 Thread Milan Milanovic

I really don't understand what do you need more ?

For this:

s:param value=#session.order.orderList[#rowstatus.index].price/ 

I have:

class Order {
 
 SetOrderElement orderList = new java.util.TreeSet

 // get/set methods exists for this orderList

}

class OrderElement {

  BigDecimal price;

 // get/set methods exists for price
}

I have filled this element and put it in session, and as I get 5 when call
size it is there, but I cannot access every element in collection with
above syntax in Struts 2.0.11.1.

--
Milan


newton.dave wrote:
 
 Without knowing what the data is you're using there's no way to be of any
 further assistance.
 
 If the backing data is there the syntax provided (and IIRC Stephan was
 also able to use), AFAICT, works fine. Without knowing the differences
 between my code, which works fine, and yours, there's not much else to
 say.
 
 Dave
 
 --- On Tue, 8/26/08, Milan Milanovic [EMAIL PROTECTED] wrote:
 
 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Tuesday, August 26, 2008, 11:13 AM
 Dear Dave,
 
 I tried everything nad I always got null values. I think
 that I have similar
 problem as here: 
 http://www.nabble.com/More-OGNL-Woes-td18877994.html
 http://www.nabble.com/More-OGNL-Woes-td18877994.html ,
 altough without
 importing. I tried all of these syntax and it doesn't
 work, I tried even
 without params' name attribute.
 
 I'm stuck here with my project for days now :-((.
 
 --
 Milan
 
 
 
 newton.dave wrote:
  
  ...
  
  I already knew the JSP that was causing the error.
  
  Dave
  
  --- On Mon, 8/25/08, Milan Milanovic
 [EMAIL PROTECTED] wrote:
  
  From: Milan Milanovic
 [EMAIL PROTECTED]
  Subject: Re: [S2] Iterate through two lists
  To: user@struts.apache.org
  Date: Monday, August 25, 2008, 1:10 PM
  Hi Dave,
  
  here is complete jsp:
  
  s:iterator
 value=activeOrder.orderList
  status=rowstatus
 tr id=row_s:property
  value=reference/
  class=odd
 td
s:text name=order.ref 
s:param name=value
  value=reference/  - THIS WORKS
 /s:text

 /td
 s:if test=#session.order !=
 null
  - order in session is
  recognized
td 
s:text name=order.price  
s:param name=value
 
 value=#session.order.orderList[#rowstatus.index].price/
  - null values
/s:text
/td 
  /s:if 
  td 
s:text name=order.price  
s:param name=value
  value=price/ - HERE IT WORKS,
 from
  activeOrder.
/s:text
  /td 
/tr
  /s:iterator
  
  I checked many times if I have orderList in my
 session and
  I have orderList
  in it filled.
  
  --
  Milan
  
  
  newton.dave wrote:
   
   --- On Mon, 8/25/08, Milan Milanovic wrote:
   s:if test=#session.order !=
  null  
   - HERE IT WORKS (order is recognized
   in session)!!
  td
  s:text
 name=order.price
  
 s:param
  name=value
  
 
 value=#session.order.orderList[#rowstatus.index].price/
   - HERE IT
   DOESN'T WORK - null value!
   /s:text
  /td
   /s:if
   
   IT is two *entirely different
  expressions*, and you continue to provide
   no additional information that might be
 usable to
  solve the problem. It's
   not an OGNL syntax issue. If you want more
 help,
  provide more details.
   
   (IIRC I also didn't use
 s:param...'s
  name attribute; I don't think
   it's necessary, although I don't know
 if the
  presence of it will cause the
   message to be parameterized incorrectly.)
   
   Dave
   
   
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
   
  
  -- 
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147809.html
  Sent from the Struts - User mailing list archive
 at
  Nabble.com.
  
  
 
 -
  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]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19164005.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19164427.html
Sent from

Re: [S2] Iterate through two lists

2008-08-26 Thread Milan Milanovic

Hm...maybe it is a problem beacuse of Set (not List) ?

--
Milan


Milan Milanovic wrote:
 
 I really don't understand what do you need more ?
 
 For this:
 
 s:param value=#session.order.orderList[#rowstatus.index].price/ 
 
 I have:
 
 class Order {
  
  SetOrderElement orderList = new java.util.TreeSet
 
  // get/set methods exists for this orderList
 
 }
 
 class OrderElement {
 
   BigDecimal price;
 
  // get/set methods exists for price
 }
 
 I have filled this element and put it in session, and as I get 5 when call
 size it is there, but I cannot access every element in collection with
 above syntax in Struts 2.0.11.1.
 
 I also tested order.orderList with logging before showing jsp, and I have
 those elements, and every element have a price!
 
 --
 Milan
 
 
 newton.dave wrote:
 
 Without knowing what the data is you're using there's no way to be of any
 further assistance.
 
 If the backing data is there the syntax provided (and IIRC Stephan was
 also able to use), AFAICT, works fine. Without knowing the differences
 between my code, which works fine, and yours, there's not much else to
 say.
 
 Dave
 
 --- On Tue, 8/26/08, Milan Milanovic [EMAIL PROTECTED] wrote:
 
 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Tuesday, August 26, 2008, 11:13 AM
 Dear Dave,
 
 I tried everything nad I always got null values. I think
 that I have similar
 problem as here: 
 http://www.nabble.com/More-OGNL-Woes-td18877994.html
 http://www.nabble.com/More-OGNL-Woes-td18877994.html ,
 altough without
 importing. I tried all of these syntax and it doesn't
 work, I tried even
 without params' name attribute.
 
 I'm stuck here with my project for days now :-((.
 
 --
 Milan
 
 
 
 newton.dave wrote:
  
  ...
  
  I already knew the JSP that was causing the error.
  
  Dave
  
  --- On Mon, 8/25/08, Milan Milanovic
 [EMAIL PROTECTED] wrote:
  
  From: Milan Milanovic
 [EMAIL PROTECTED]
  Subject: Re: [S2] Iterate through two lists
  To: user@struts.apache.org
  Date: Monday, August 25, 2008, 1:10 PM
  Hi Dave,
  
  here is complete jsp:
  
  s:iterator
 value=activeOrder.orderList
  status=rowstatus
 tr id=row_s:property
  value=reference/
  class=odd
 td
   s:text name=order.ref 
   s:param name=value
  value=reference/  - THIS WORKS
/s:text
   
 /td
 s:if test=#session.order !=
 null
  - order in session is
  recognized
   td 
   s:text name=order.price  
   s:param name=value
 
 value=#session.order.orderList[#rowstatus.index].price/
  - null values
   /s:text
   /td 
  /s:if 
  td 
   s:text name=order.price  
   s:param name=value
  value=price/ - HERE IT WORKS,
 from
  activeOrder.
   /s:text
  /td 
/tr
  /s:iterator
  
  I checked many times if I have orderList in my
 session and
  I have orderList
  in it filled.
  
  --
  Milan
  
  
  newton.dave wrote:
   
   --- On Mon, 8/25/08, Milan Milanovic wrote:
   s:if test=#session.order !=
  null  
   - HERE IT WORKS (order is recognized
   in session)!!
  td
  s:text
 name=order.price
  
 s:param
  name=value
  
 
 value=#session.order.orderList[#rowstatus.index].price/
   - HERE IT
   DOESN'T WORK - null value!
   /s:text
  /td
   /s:if
   
   IT is two *entirely different
  expressions*, and you continue to provide
   no additional information that might be
 usable to
  solve the problem. It's
   not an OGNL syntax issue. If you want more
 help,
  provide more details.
   
   (IIRC I also didn't use
 s:param...'s
  name attribute; I don't think
   it's necessary, although I don't know
 if the
  presence of it will cause the
   message to be parameterized incorrectly.)
   
   Dave
   
   
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
   
  
  -- 
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147809.html
  Sent from the Struts - User mailing list archive
 at
  Nabble.com.
  
  
 
 -
  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]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19164005.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED

Re: [S2] Iterate through two lists

2008-08-26 Thread Dave Newton
--- On Tue, 8/26/08, Milan Milanovic [EMAIL PROTECTED] wrote:
 Hm...maybe it is a problem beacuse of Set (not List)?

Now, probably, you understand why I didn't think you were providing all the 
information necessary to help you.

And you probably solved your own problem, so we're all... set. (And even if you 
can't or don't want to fix it on the server-side, it's a 9-character fix on the 
JSP side.)

Dave


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



Re: [S2] Iterate through two lists

2008-08-26 Thread Dave Newton
--- On Tue, 8/26/08, Dave Newton [EMAIL PROTECTED] wrote:
 (And even if you can't or don't want to fix it on the server-side, 
 it's a 9-character fix on the JSP side.)

(Although it's not likely to do what you want.)

Dave


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



Re: [S2] Iterate through two lists

2008-08-25 Thread Milan Milanovic

I tried this syntax when my someObject is located in action class:

s:param value=someObject.fruits2[#rowstatus.index].name/,

I also put this variable into sesson, and treid like this:

s:param value=#session.someObject.fruits2[#rowstatus.index].name/

and it doesn't work, but it is wierd because few lines above, this works:

s:if test=#session.someObject != null
...
/s:if

So, I supose that this value attribute of s:param doesn't work well or synax
is no good.

--
Milan


newton.dave wrote:
 
 --- On Sat, 8/23/08, Milan Milanovic wrote:
 O.K. I'll try to find it. But I just think that this synax is no good:
 
 s:param value=someObject.fruits2[#rowstatus.index].name/
 
 You may *think* that, but the syntax is fine, and I have working code that
 uses it, written while working on your problem.
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19146071.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-25 Thread Dave Newton
Then something further down the object chain is broken, but you insist on not 
sharing any more relevant information, so you're on your own.

If the values in question exist the syntax works, AFAICT, since I have the 
exact same syntax and I get data back.

Dave


--- On Mon, 8/25/08, Milan Milanovic [EMAIL PROTECTED] wrote:

 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Monday, August 25, 2008, 11:30 AM
 I tried this syntax when my someObject is
 located in action class:
 
 s:param
 value=someObject.fruits2[#rowstatus.index].name/,
 
 I also put this variable into sesson, and treid like this:
 
 s:param
 value=#session.someObject.fruits2[#rowstatus.index].name/
 
 and it doesn't work, but it is wierd because few lines
 above, this works:
 
 s:if test=#session.someObject != null
 ...
 /s:if
 
 So, I supose that this value attribute of s:param
 doesn't work well or synax
 is no good.
 
 --
 Milan
 
 
 newton.dave wrote:
  
  --- On Sat, 8/23/08, Milan Milanovic wrote:
  O.K. I'll try to find it. But I just think
 that this synax is no good:
  
  s:param
 value=someObject.fruits2[#rowstatus.index].name/
  
  You may *think* that, but the syntax is fine, and I
 have working code that
  uses it, written while working on your problem.
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19146071.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]



Re: [S2] Iterate through two lists

2008-08-25 Thread Milan Milanovic

Here it is EXACT code:

s:if test=#session.order != null   - HERE IT WORKS (order is recognized
in session)!!
   td
   s:text name=order.price 
  s:param name=value
value=#session.order.orderList[#rowstatus.index].price/ - HERE IT
DOESN'T WORK - null value!
/s:text
   /td
/s:if

--
Regards, Milan


newton.dave wrote:
 
 Then something further down the object chain is broken, but you insist on
 not sharing any more relevant information, so you're on your own.
 
 If the values in question exist the syntax works, AFAICT, since I have the
 exact same syntax and I get data back.
 
 Dave
 
 
 --- On Mon, 8/25/08, Milan Milanovic [EMAIL PROTECTED] wrote:
 
 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Monday, August 25, 2008, 11:30 AM
 I tried this syntax when my someObject is
 located in action class:
 
 s:param
 value=someObject.fruits2[#rowstatus.index].name/,
 
 I also put this variable into sesson, and treid like this:
 
 s:param
 value=#session.someObject.fruits2[#rowstatus.index].name/
 
 and it doesn't work, but it is wierd because few lines
 above, this works:
 
 s:if test=#session.someObject != null
 ...
 /s:if
 
 So, I supose that this value attribute of s:param
 doesn't work well or synax
 is no good.
 
 --
 Milan
 
 
 newton.dave wrote:
  
  --- On Sat, 8/23/08, Milan Milanovic wrote:
  O.K. I'll try to find it. But I just think
 that this synax is no good:
  
  s:param
 value=someObject.fruits2[#rowstatus.index].name/
  
  You may *think* that, but the syntax is fine, and I
 have working code that
  uses it, written while working on your problem.
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19146071.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147115.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-25 Thread Dave Newton
--- On Mon, 8/25/08, Milan Milanovic wrote:
 s:if test=#session.order != null  
 - HERE IT WORKS (order is recognized
 in session)!!
td
s:text name=order.price 
   s:param name=value
 value=#session.order.orderList[#rowstatus.index].price/
 - HERE IT
 DOESN'T WORK - null value!
 /s:text
/td
 /s:if

IT is two *entirely different expressions*, and you continue to provide no 
additional information that might be usable to solve the problem. It's not an 
OGNL syntax issue. If you want more help, provide more details.

(IIRC I also didn't use s:param...'s name attribute; I don't think it's 
necessary, although I don't know if the presence of it will cause the message 
to be parameterized incorrectly.)

Dave


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



Re: [S2] Iterate through two lists

2008-08-25 Thread Milan Milanovic

Hi Dave,

here is complete jsp:

s:iterator value=activeOrder.orderList status=rowstatus
   tr id=row_s:property value=reference/ class=odd
   td
s:text name=order.ref 
s:param name=value value=reference/  - THIS WORKS
 /s:text

   /td
   s:if test=#session.order != null - order in session is
recognized
td 
s:text name=order.price  
s:param name=value
value=#session.order.orderList[#rowstatus.index].price/ - null values
/s:text
/td 
/s:if 
td 
s:text name=order.price  
s:param name=value value=price/ - HERE IT WORKS, from 
activeOrder.
/s:text
/td 
  /tr
/s:iterator

I checked many times if I have orderList in my session and I have orderList
in it filled.

--
Milan


newton.dave wrote:
 
 --- On Mon, 8/25/08, Milan Milanovic wrote:
 s:if test=#session.order != null  
 - HERE IT WORKS (order is recognized
 in session)!!
td
s:text name=order.price 
   s:param name=value
 value=#session.order.orderList[#rowstatus.index].price/
 - HERE IT
 DOESN'T WORK - null value!
 /s:text
/td
 /s:if
 
 IT is two *entirely different expressions*, and you continue to provide
 no additional information that might be usable to solve the problem. It's
 not an OGNL syntax issue. If you want more help, provide more details.
 
 (IIRC I also didn't use s:param...'s name attribute; I don't think
 it's necessary, although I don't know if the presence of it will cause the
 message to be parameterized incorrectly.)
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147809.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-25 Thread Dave Newton
...

I already knew the JSP that was causing the error.

Dave

--- On Mon, 8/25/08, Milan Milanovic [EMAIL PROTECTED] wrote:

 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Monday, August 25, 2008, 1:10 PM
 Hi Dave,
 
 here is complete jsp:
 
 s:iterator value=activeOrder.orderList
 status=rowstatus
tr id=row_s:property
 value=reference/
 class=odd
td
   s:text name=order.ref 
   s:param name=value
 value=reference/  - THIS WORKS
/s:text
   
/td
s:if test=#session.order != null
 - order in session is
 recognized
   td 
   s:text name=order.price  
   s:param name=value
 value=#session.order.orderList[#rowstatus.index].price/
 - null values
   /s:text
   /td 
 /s:if 
 td 
   s:text name=order.price  
   s:param name=value
 value=price/ - HERE IT WORKS, from
 activeOrder.
   /s:text
 /td 
   /tr
 /s:iterator
 
 I checked many times if I have orderList in my session and
 I have orderList
 in it filled.
 
 --
 Milan
 
 
 newton.dave wrote:
  
  --- On Mon, 8/25/08, Milan Milanovic wrote:
  s:if test=#session.order !=
 null  
  - HERE IT WORKS (order is recognized
  in session)!!
 td
 s:text name=order.price
 
s:param
 name=value
 
 value=#session.order.orderList[#rowstatus.index].price/
  - HERE IT
  DOESN'T WORK - null value!
  /s:text
 /td
  /s:if
  
  IT is two *entirely different
 expressions*, and you continue to provide
  no additional information that might be usable to
 solve the problem. It's
  not an OGNL syntax issue. If you want more help,
 provide more details.
  
  (IIRC I also didn't use s:param...'s
 name attribute; I don't think
  it's necessary, although I don't know if the
 presence of it will cause the
  message to be parameterized incorrectly.)
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19147809.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]



Re: [S2] Iterate through two lists

2008-08-23 Thread Milan Milanovic

O.K. I'll try to find it. But I just think that this synax is no good:

s:param value=someObject.fruits2[#rowstatus.index].name/ 

--
Milan


newton.dave wrote:
 
 --- On Fri, 8/22/08, Milan Milanovic wrote:
 Where can I set levels DEBUG for S2, XWork and OGNL ?
 
 Search the fine web for Java logging, possibly after checking what S2 has
 for logging-oriented dependencies.
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19120556.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-23 Thread Dave Newton
--- On Sat, 8/23/08, Milan Milanovic wrote:
 O.K. I'll try to find it. But I just think that this synax is no good:
 
 s:param value=someObject.fruits2[#rowstatus.index].name/

You may *think* that, but the syntax is fine, and I have working code that uses 
it, written while working on your problem.

Dave


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



Re: [S2] Iterate through two lists

2008-08-22 Thread Stephan Schröder
 If all you're trying to do is set message properties why are you bothering
 with the push?
 
  s:iterator value=fruits1 status=rowstatus
s:text name=names
  s:param value=someObject.fruits2[#rowstatus.index].name/
/s:text
  /s:iterator

Looks good (if fruit1 is accessable bei a getter in the action class). Does it 
work for you?

s:text name=names
  s:push value=someObject.fruits2[#rowstatus.index]
s:param name=value value=name/
  /s:push
/s:text
 
 I'm not sure why the push tag is causing the issue, though.

Maybe the param tag tries to bind with the push tag and not with the text tag???

/Stephan
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



Re: [S2] Iterate through two lists

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, Stephan Schröder [EMAIL PROTECTED] wrote:
 Maybe the param tag tries to bind with the push tag and not
 with the text tag???

Oh, that makes sense, although it'd probably be better to not throw a huge 
exception :/ Hopefully I'll have time to look in to that soon.

Dave


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



Re: [S2] Iterate through two lists

2008-08-22 Thread Milan Milanovic

Dear Dave,

now, I don't get 500 server error, but null values! I don't know why?

Where can I set levels DEBUG for S2, XWork and OGNL ?

--
Thx, Milan


newton.dave wrote:
 
 --- On Thu, 8/21/08, Milan Milanovic wrote:
 I have struts devMode on and logging works for Struts,
 i.e., I get all messages from Apache Tomcat and Struts 
 in console. What do you mean by logging turned up ?
 
 Set log levels to DEBUG for S2, XWork, and OGNL.
 
 Did my solution work for you?
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19116450.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, Milan Milanovic wrote:
 Where can I set levels DEBUG for S2, XWork and OGNL ?

Search the fine web for Java logging, possibly after checking what S2 has for 
logging-oriented dependencies.

Dave


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Stephan Schröder
this code here works for me:
@s.set name=list1 value=%{{'apple','banana'}} /
@s.set name=list2 value=%{{'juice','cream'}} /

@s.iterator value=#list1 status=rowstatus
  @s.property /
  @s.push value=#list2[#rowstatus.index]
@s.property /
  /@s.push
  br
/@s.iterator

(Notice: this is freemarker-Syntax, to get JSP-Syntax replace @s. with s:)

Maybe you forgot an '#' somewhere? How are fruit1,2 obtained?

/Stephan

 Original-Nachricht 
 Datum: Wed, 20 Aug 2008 09:05:55 -0700 (PDT)
 Von: Milan Milanovic [EMAIL PROTECTED]
 An: user@struts.apache.org
 Betreff: Re: [S2] Iterate through two lists

 
 Dear Dave,
 
 yes, I tried with index too, but it doesn't work. No, there is nothing in
 log.
 
 --
 Regards, Milan
 
 
 newton.dave wrote:
  
  --- On Wed, 8/20/08, Milan Milanovic wrote:
  No, this doesn't work. I get: 500 Internal Server
  Error if I use this.
  
  First of all, it should be rowStatus.index, which is zero-based (count
 is
  one-based).
  
  Second of all, is there anything in the log?
  
  Dave
  
  quot;Stephan Schröderquot; wrote:
   
   I'm not sure whether the syntax is completly right
  but it should work like
   this:
   
   s:iterator value=fruits1
  status=rowstatus
   
   s:property value=name /
   
   s:push
  value=fruits2[#rowstatus.count]
   s:property value=name /
   /s:push
   
   /s:iterator
   
   View this message in context:
  
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html
   -- 
-- 
Pt! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03

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



Re: [S2] Iterate through two lists

2008-08-21 Thread Milan Milanovic

Hi Stephan,

I tried to adopt your solution, like this:

s:iterator value=#list1 status=rowstatus
 s:text name=names 
s:push value=#someObject.list2[#rowstatus.index]
s:param name=value value=name/
 /s:push
 /s:text
/s:iterator

but I get: Error loading 'myApp/showFruits.action' (500 Internal Server
Error),
and there is nothing in log.

?

--
Regards, Milan


quot;Stephan Schröderquot; wrote:
 
 this code here works for me:
 @s.set name=list1 value=%{{'apple','banana'}} /
 @s.set name=list2 value=%{{'juice','cream'}} /
 
 @s.iterator value=#list1 status=rowstatus
   @s.property /
   @s.push value=#list2[#rowstatus.index]
 @s.property /
   /@s.push
   br
 /@s.iterator
 
 (Notice: this is freemarker-Syntax, to get JSP-Syntax replace @s. with
 s:)
 
 Maybe you forgot an '#' somewhere? How are fruit1,2 obtained?
 
 /Stephan
 
  Original-Nachricht 
 Datum: Wed, 20 Aug 2008 09:05:55 -0700 (PDT)
 Von: Milan Milanovic [EMAIL PROTECTED]
 An: user@struts.apache.org
 Betreff: Re: [S2] Iterate through two lists
 
 
 Dear Dave,
 
 yes, I tried with index too, but it doesn't work. No, there is nothing in
 log.
 
 --
 Regards, Milan
 
 
 newton.dave wrote:
  
  --- On Wed, 8/20/08, Milan Milanovic wrote:
  No, this doesn't work. I get: 500 Internal Server
  Error if I use this.
  
  First of all, it should be rowStatus.index, which is zero-based (count
 is
  one-based).
  
  Second of all, is there anything in the log?
  
  Dave
  
  quot;Stephan Schröderquot; wrote:
   
   I'm not sure whether the syntax is completly right
  but it should work like
   this:
   
   s:iterator value=fruits1
  status=rowstatus
   
   s:property value=name /
   
   s:push
  value=fruits2[#rowstatus.count]
   s:property value=name /
   /s:push
   
   /s:iterator
   
   View this message in context:
  
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html
   -- 
 -- 
 Pt! Schon das coole Video vom GMX MultiMessenger gesehen?
 Der Eine für Alle: http://www.gmx.net/de/go/messenger03
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19091081.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Dave Newton
--- On Thu, 8/21/08, Milan Milanovic wrote:
 I tried to adopt your solution, like this:
 
 s:iterator value=#list1 status=rowstatus
   s:text name=names 
 s:push value=#someObject.list2[#rowstatus.index]
   s:param name=value value=name/
 /s:push
   /s:text
 /s:iterator
 
 but I get: Error loading 'myApp/showFruits.action'
 (500 Internal Server Error),
 and there is nothing in log.

I'd say something is wrong either in the action configuration or code; even if 
the OGNL didn't work (AFAIK it should) I don't think it would cause a 500.

Do you have devMode turned on and logging turned up? Have you verified that you 
have access to the two lists without all the looping and pushing and whatnot?

Dave


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Milan Milanovic

Dear Dave,


newton.dave wrote:
 I'd say something is wrong either in the action configuration or code;
 even if the OGNL didn't work (AFAIK it should) I don't think it would
 cause a 500.
 

When I remove this push code I don't get this error.


newton.dave wrote:
 Do you have devMode turned on and logging turned up? Have you verified
 that you have access to the two lists without all the looping and pushing
 and whatnot?

Yes, I have devMode turned on in struts.xml and loggin is turned up, I
always get some messages in console. Yes, both of my two lists have accesss,
get/set methods.

--
Regards, Milan



newton.dave wrote:
 
 --- On Thu, 8/21/08, Milan Milanovic wrote:
 I tried to adopt your solution, like this:
 
 s:iterator value=#list1 status=rowstatus
   s:text name=names 
 s:push value=#someObject.list2[#rowstatus.index]
   s:param name=value value=name/
 /s:push
   /s:text
 /s:iterator
 
 but I get: Error loading 'myApp/showFruits.action'
 (500 Internal Server Error),
 and there is nothing in log.
 
 I'd say something is wrong either in the action configuration or code;
 even if the OGNL didn't work (AFAIK it should) I don't think it would
 cause a 500.
 
 Do you have devMode turned on and logging turned up? Have you verified
 that you have access to the two lists without all the looping and pushing
 and whatnot?
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19091427.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Dave Newton
What is someObject? Have you created it as a named stack context variable?

Dave

--- On Thu, 8/21/08, Milan Milanovic [EMAIL PROTECTED] wrote:

 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Thursday, August 21, 2008, 11:41 AM
 Dear Dave,
 
 
 newton.dave wrote:
  I'd say something is wrong either in the action
 configuration or code;
  even if the OGNL didn't work (AFAIK it should) I
 don't think it would
  cause a 500.
  
 
 When I remove this push code I don't get
 this error.
 
 
 newton.dave wrote:
  Do you have devMode turned on and logging turned up?
 Have you verified
  that you have access to the two lists without all the
 looping and pushing
  and whatnot?
 
 Yes, I have devMode turned on in struts.xml and loggin is
 turned up, I
 always get some messages in console. Yes, both of my two
 lists have accesss,
 get/set methods.
 
 --
 Regards, Milan
 
 
 
 newton.dave wrote:
  
  --- On Thu, 8/21/08, Milan Milanovic wrote:
  I tried to adopt your solution, like this:
  
  s:iterator value=#list1
 status=rowstatus
s:text name=names 
  s:push
 value=#someObject.list2[#rowstatus.index]
s:param name=value
 value=name/
  /s:push
/s:text
  /s:iterator
  
  but I get: Error loading
 'myApp/showFruits.action'
  (500 Internal Server Error),
  and there is nothing in log.
  
  I'd say something is wrong either in the action
 configuration or code;
  even if the OGNL didn't work (AFAIK it should) I
 don't think it would
  cause a 500.
  
  Do you have devMode turned on and logging turned up?
 Have you verified
  that you have access to the two lists without all the
 looping and pushing
  and whatnot?
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19091427.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]



Re: [S2] Iterate through two lists

2008-08-21 Thread Milan Milanovic

Hi Dave,

it is an object that contains list of Fruits, nothing else. Yes, it is
located in action class and have get/set methods.

--
Milan


newton.dave wrote:
 
 What is someObject? Have you created it as a named stack context
 variable?
 
 Dave
 
 --- On Thu, 8/21/08, Milan Milanovic [EMAIL PROTECTED] wrote:
 
 From: Milan Milanovic [EMAIL PROTECTED]
 Subject: Re: [S2] Iterate through two lists
 To: user@struts.apache.org
 Date: Thursday, August 21, 2008, 11:41 AM
 Dear Dave,
 
 
 newton.dave wrote:
  I'd say something is wrong either in the action
 configuration or code;
  even if the OGNL didn't work (AFAIK it should) I
 don't think it would
  cause a 500.
  
 
 When I remove this push code I don't get
 this error.
 
 
 newton.dave wrote:
  Do you have devMode turned on and logging turned up?
 Have you verified
  that you have access to the two lists without all the
 looping and pushing
  and whatnot?
 
 Yes, I have devMode turned on in struts.xml and loggin is
 turned up, I
 always get some messages in console. Yes, both of my two
 lists have accesss,
 get/set methods.
 
 --
 Regards, Milan
 
 
 
 newton.dave wrote:
  
  --- On Thu, 8/21/08, Milan Milanovic wrote:
  I tried to adopt your solution, like this:
  
  s:iterator value=#list1
 status=rowstatus
s:text name=names 
  s:push
 value=#someObject.list2[#rowstatus.index]
s:param name=value
 value=name/
  /s:push
/s:text
  /s:iterator
  
  but I get: Error loading
 'myApp/showFruits.action'
  (500 Internal Server Error),
  and there is nothing in log.
  
  I'd say something is wrong either in the action
 configuration or code;
  even if the OGNL didn't work (AFAIK it should) I
 don't think it would
  cause a 500.
  
  Do you have devMode turned on and logging turned up?
 Have you verified
  that you have access to the two lists without all the
 looping and pushing
  and whatnot?
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19091427.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19091806.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Dave Newton
--- On Thu, 8/21/08, Milan Milanovic wrote:
 it is an object that contains list of Fruits, nothing else.
 Yes, it is located in action class and have get/set methods.
 newton.dave wrote:
 What is someObject? Have you created it as
 a named stack context variable?

The answer to my question is actually no, then.

You shouldn't use the # prefix character to access action properties, only 
stack *context* properties (like #request, values created using s:set... and 
similar, and so on).

Do you still get the 500 using the correct OGNL expression?

Dave


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Milan Milanovic

Dear Dave,

I removed # from my expression and I still get: (500 Internal Server Error).

--
Milan


newton.dave wrote:
 
 --- On Thu, 8/21/08, Milan Milanovic wrote:
 it is an object that contains list of Fruits, nothing else.
 Yes, it is located in action class and have get/set methods.
 newton.dave wrote:
 What is someObject? Have you created it as
 a named stack context variable?
 
 The answer to my question is actually no, then.
 
 You shouldn't use the # prefix character to access action properties,
 only stack *context* properties (like #request, values created using
 s:set... and similar, and so on).
 
 Do you still get the 500 using the correct OGNL expression?
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19092268.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Dave Newton
--- On Thu, 8/21/08, Milan Milanovic wrote:
 I removed # from my expression and I still get: (500
 Internal Server Error).

Not sure what else to tell you since you don't post any of the related code. I 
can't reproduce the issue, nor can Stephan. If you want more assistance you'll 
have to be more helpful.

It's almost always quicker to include all the relevant code and configs up 
front; it can save a lot of back-and-forth.

Dave

 newton.dave wrote:
  
  --- On Thu, 8/21/08, Milan Milanovic wrote:
  it is an object that contains list of Fruits,
 nothing else.
  Yes, it is located in action class and have
 get/set methods.
  newton.dave wrote:
  What is someObject? Have you
 created it as
  a named stack context variable?
  
  The answer to my question is actually no,
 then.
  
  You shouldn't use the # prefix
 character to access action properties,
  only stack *context* properties (like #request, values
 created using
  s:set... and similar, and so on).
  
  Do you still get the 500 using the correct OGNL
 expression?
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19092268.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]



Re: [S2] Iterate through two lists

2008-08-21 Thread Milan Milanovic

Tell me is this syntax good now for representing action class attribute
called someObject ?:

s:iterator value=fruits1 status=rowstatus
s:text name=names 
s:push value=someObject.fruits2[#rowstatus.index]
 s:param name=value value=name/
/s:push
/s:text
/s:iterator

--
Milan



newton.dave wrote:
 
 --- On Thu, 8/21/08, Milan Milanovic wrote:
 I removed # from my expression and I still get: (500
 Internal Server Error).
 
 Not sure what else to tell you since you don't post any of the related
 code. I can't reproduce the issue, nor can Stephan. If you want more
 assistance you'll have to be more helpful.
 
 It's almost always quicker to include all the relevant code and configs up
 front; it can save a lot of back-and-forth.
 
 Dave
 
 newton.dave wrote:
  
  --- On Thu, 8/21/08, Milan Milanovic wrote:
  it is an object that contains list of Fruits,
 nothing else.
  Yes, it is located in action class and have
 get/set methods.
  newton.dave wrote:
  What is someObject? Have you
 created it as
  a named stack context variable?
  
  The answer to my question is actually no,
 then.
  
  You shouldn't use the # prefix
 character to access action properties,
  only stack *context* properties (like #request, values
 created using
  s:set... and similar, and so on).
  
  Do you still get the 500 using the correct OGNL
 expression?
  
  Dave
  
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19092268.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19092596.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Milan Milanovic

Hi Dave,

I have struts devMode on and logging works for Struts, i.e., I get all
messages from Apache Tomcat and Struts in console. What do you mean by
logging turned up ?

--
Milan


newton.dave wrote:
 
 --- On Thu, 8/21/08, Milan Milanovic wrote:
 Tell me is this syntax good now for representing action
 class attribute called someObject?:
 
 s:iterator value=fruits1 status=rowstatus
   s:text name=names
 s:push value=someObject.fruits2[#rowstatus.index]
   s:param name=value value=name/
 /s:push
   /s:text
 /s:iterator
 
 *sigh*
 
 Yes, someObject will access an action property named someObject.
 
 If all you're trying to do is set message properties why are you bothering
 with the push?
 
 s:iterator value=fruits1 status=rowstatus
   s:text name=names
 s:param value=someObject.fruits2[#rowstatus.index].name/
   /s:text
 /s:iterator
 
 Btw, I have logging turned up and get a useful debug message: when you say
 you have logging turned up, what, exactly, do you mean?
 
 I'm not sure why the push tag is causing the issue, though.
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19098174.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-21 Thread Dave Newton
--- On Thu, 8/21/08, Milan Milanovic wrote:
 I have struts devMode on and logging works for Struts,
 i.e., I get all messages from Apache Tomcat and Struts 
 in console. What do you mean by logging turned up ?

Set log levels to DEBUG for S2, XWork, and OGNL.

Did my solution work for you?

Dave


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



Re: [S2] Iterate through two lists

2008-08-20 Thread Stephan Schröder
I'm not sure whether the syntax is completly right but it should work like this:

s:iterator value=fruits1 status=rowstatus

s:property value=name /

s:push value=fruits2[#rowstatus.count]
s:property value=name /
/s:push

/s:iterator

 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



Re: [S2] Iterate through two lists

2008-08-20 Thread Milan Milanovic

No, this doesn't work. I get: 500 Internal Server Error if I use this.

--
Milan


quot;Stephan Schröderquot; wrote:
 
 I'm not sure whether the syntax is completly right but it should work like
 this:
 
 s:iterator value=fruits1 status=rowstatus
 
 s:property value=name /
 
 s:push value=fruits2[#rowstatus.count]
 s:property value=name /
 /s:push
 
 /s:iterator
 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html
 -- 
 Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
 Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19069992.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: [S2] Iterate through two lists

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, Milan Milanovic wrote:
 No, this doesn't work. I get: 500 Internal Server
 Error if I use this.

First of all, it should be rowStatus.index, which is zero-based (count is 
one-based).

Second of all, is there anything in the log?

Dave

 quot;Stephan Schröderquot; wrote:
  
  I'm not sure whether the syntax is completly right
 but it should work like
  this:
  
  s:iterator value=fruits1
 status=rowstatus
  
  s:property value=name /
  
  s:push
 value=fruits2[#rowstatus.count]
  s:property value=name /
  /s:push
  
  /s:iterator
  
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html
  -- 
  Der GMX SmartSurfer hilft bis zu 70% Ihrer
 Onlinekosten zu sparen! 
  Ideal für Modem und ISDN:
 http://www.gmx.net/de/go/smartsurfer
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19069992.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]



Re: [S2] Iterate through two lists

2008-08-20 Thread Milan Milanovic

Dear Dave,

yes, I tried with index too, but it doesn't work. No, there is nothing in
log.

--
Regards, Milan


newton.dave wrote:
 
 --- On Wed, 8/20/08, Milan Milanovic wrote:
 No, this doesn't work. I get: 500 Internal Server
 Error if I use this.
 
 First of all, it should be rowStatus.index, which is zero-based (count is
 one-based).
 
 Second of all, is there anything in the log?
 
 Dave
 
 quot;Stephan Schröderquot; wrote:
  
  I'm not sure whether the syntax is completly right
 but it should work like
  this:
  
  s:iterator value=fruits1
 status=rowstatus
  
  s:property value=name /
  
  s:push
 value=fruits2[#rowstatus.count]
  s:property value=name /
  /s:push
  
  /s:iterator
  
  View this message in context:
 
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html
  -- 
  Der GMX SmartSurfer hilft bis zu 70% Ihrer
 Onlinekosten zu sparen! 
  Ideal für Modem und ISDN:
 http://www.gmx.net/de/go/smartsurfer
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19069992.html
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 
 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19071869.html
Sent from the Struts - User mailing list archive at Nabble.com.


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