Re: assigning a value back to a bean in a logic:iterate?

2003-09-15 Thread Mick Knutson
Can't I just do something like: logic:equal property=cColor value=content_tbl_white %= cColor = content_tbl_blue % test cellColor /logic:equal But this does not work either. The logic _does_ find the cColor as content_tbl_white --- Thanks Mick Knutson

RE: assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mohan Radhakrishnan
bean:parameter id=cellColor name=cellColor value=content_tbl_blue / This code defines a scripting variable but I think that since you don't have any html controls this value is not automatically sent with the request. In our JSP's where we don't have html controls we use the following code.

Re: assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mick Knutson
I am basically trying to take cellColor which is a variable in my DynaForm, and loop through an array of alerts[] that is also in this DynaForm. So I can then alternate the cell colors of the table. So alertForm.cellColor need to be changed each iteration of this loop. --- Thanks Mick Knutson

RE: assigning a value back to a bean in a logic:iterate?

2003-09-12 Thread Mohan Radhakrishnan
If you just want to alternate within the loop you can do something like this logic:iterate id=item name=list indexId=index %=index% /logic:iterate This will print 'index'. So you can do something like this if( index % 2 == 0 ){ // Do something } else if( index % 2 == 1