RE: Iterate Index Evaluation

2003-01-03 Thread pqin
Odd and even is not the only way of doing that, you can also switch between
1 and -1 regardless which row index is.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Piper, James D CECOM SEC EPS
[mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 4:50 PM
To: 'Cohan, Sean'; 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation

I found the RowTag by Amarda Business Systems Ltd useful for doing different
colors based on odd or even rows...

looking at their source they use logic like:
boolean evenNumber = (getRowNumber() % 2) == 0 ? true : false;

to determine odd or even where getRowNumber() essentialy gets the iterators
index.  Pretty much the same logic as what you came up with.

http://jakarta.apache.org/struts/resources/taglibs.html

- Jim Piper


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 4:11 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks very much!  I will.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Strike that ... reverse it!  I was able to use the bean:define as follows:


  
  
even markup here
  
  
odd markup here
  


Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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

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

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



RE: Iterate Index Evaluation

2003-01-03 Thread Piper, James D CECOM SEC EPS
I found the RowTag by Amarda Business Systems Ltd useful for doing different
colors based on odd or even rows...

looking at their source they use logic like:
boolean evenNumber = (getRowNumber() % 2) == 0 ? true : false;

to determine odd or even where getRowNumber() essentialy gets the iterators
index.  Pretty much the same logic as what you came up with.

http://jakarta.apache.org/struts/resources/taglibs.html

- Jim Piper


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 4:11 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks very much!  I will.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Strike that ... reverse it!  I was able to use the bean:define as follows:


  
  
even markup here
  
  
odd markup here
  


Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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

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

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




RE: Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
Thanks very much!  I will.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Strike that ... reverse it!  I was able to use the bean:define as follows:


  
  
even markup here
  
  
odd markup here
  


Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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

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

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




RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Possibly ... I haven't worked with EL yet ... it's on my "to-do" list.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Iterate Index Evaluation


Can you use html-el?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation

Strike that ... reverse it!  I was able to use the bean:define as follows:


  
  
even markup here
  
  
odd markup here
  


Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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

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

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




Re: Iterate Index Evaluation

2003-01-03 Thread Khalid K.
u can always write your own tag and get rid of that scriptlet :)

Khalid

- Original Message -
From: "Cohan, Sean" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 12:58 PM
Subject: RE: Iterate Index Evaluation


> chuckle, chuckle...
>
> -Original Message-
> From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 03, 2003 3:43 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Iterate Index Evaluation
>
>
> Er ... I think you may be right ... I know it can be done using scriptlet
> for example:
>
> 
>   <% if ((index % 2) == 0) {%>
> even row markup here
>   <% } else { %>
> odd row markup here
>   <% } %>
> 
>
> But we all know how evil this is!
>
> -Original Message-
> From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 03, 2003 3:05 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Iterate Index Evaluation
>
>
> Thanks, but I think there will be a problem with the bean:define since the
> jsp 1.1 spec does not allow you to use the same bean name more than once
in
> a single page (which is what we would be doing in an iterate tag.)  Unless
> I'm misinterpreting.
>
> -----Original Message-
> From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 03, 2003 2:49 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Iterate Index Evaluation
>
>
> Try something like ...
>
> 
>   
>   
>     markup for even row here
>   
>   
> markup for odd row here
>   
> 
>
> -Original Message-
> From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 03, 2003 2:40 PM
> To: Struts (E-mail)
> Subject: Iterate Index Evaluation
>
>
> I need to iterate over a collection and be able to tell whether the
current
> index is odd or even.  Any ideas on how I can use the logic tag for this?
>
> 
>
>
> Thanks.
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>


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




RE: Iterate Index Evaluation

2003-01-03 Thread pqin
Can you use html-el?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation

Strike that ... reverse it!  I was able to use the bean:define as follows:


  
  
even markup here
  
  
odd markup here
  


Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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

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



RE: Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
chuckle, chuckle...

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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

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




RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Strike that ... reverse it!  I was able to use the bean:define as follows:


  
  
even markup here
  
  
odd markup here
  


Give it a try!  The expression is still a little wicked but not as evil as the 
scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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

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




RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Er ... I think you may be right ... I know it can be done using scriptlet for example:


  <% if ((index % 2) == 0) {%>
even row markup here
  <% } else { %>
odd row markup here
  <% } %>


But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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

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




RE: Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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

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




RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Try something like ...


  
  
markup for even row here
  
  
markup for odd row here
  


-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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

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




Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?




Thanks.


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