RE: [Struts 2] Switching Color in every row

2008-05-16 Thread jeto
Volker Karlmeier wrote: > > Hi, > > then you could have this managed by your action class creating > a getter method for your counter. > > Maybe something like that: > > Action.class: > > public void initCounter() { > this.counter=0; > } > > public int getCounter() { >return counter+

RE: [Struts 2] Switching Color in every row

2008-05-16 Thread volker
Hi, then you could have this managed by your action class creating a getter method for your counter. Maybe something like that: Action.class: public void initCounter() { this.counter=0; } public int getCounter() { return counter++; } Your JSP: Might work :) Volker

RE: [Struts 2] Switching Color in every row

2008-05-16 Thread jeto
Volker Karlmeier wrote: > > Hi, > > if you are using an s:iterator, you can do that like this: > > > > > > > > > > > > ... > > > > Hope that helps > > Volker > > Thanks for your help but I m not using an iterator in this table. -- View this message in context: htt

RE: [Struts 2] Switching Color in every row

2008-05-16 Thread volker
Hi, if you are using an s:iterator, you can do that like this:       ... Hope that helps  Volker Hi, Im looking for a nice and easy way to alter the color of every second textfield. We are yousing a custom theme to render the textfields including a tablerow. Is something l