On Thu, 27 Jan 2005 12:49:00 +0530, senthil Kumar
<[EMAIL PROTECTED]> wrote:
> Hi all.
> 
>  I am getting more than 100 regards from database and print in a JSP by 15 
> regards per Page.
>  Its is working fine.
>  Now i want to set alternative Row background color. I print all the rows 
> between the <logic:iterator> in
> Struts. any one help me.
> 
> Here i am putting my code also.
> welcome anyone to give correct code also,
> 
> <logic:iterate id="collection" name="DFThreadForm" scope="session" 
> property="selectRegsList" >
>                          <tr bgcolor="#c2c2c2">

 <logic:iterate id="collection" name="DFThreadForm" scope="session"
property="selectRegsList" indexId="index">
                            <tr
bgcolor='<%=index.intValue()%2==0?"#c2c2c2":"#d2d2d2"%>'



>       <td align="left">
>         <a href="ShowThread.do?messageId=<bean:write name="collection" 
> property="messageId"/>">
>           <bean:write name="collection" property="topic"/>
>         </a>
>       </td>
>     <td align="center">
>     <bean:write name="DFThreadForm" property="projectName"/>
> 
>       </td>
>          <td align="center"><bean:write name="collection" 
> property="enteredDate"/></td>
>      </tr>
>   </logic:iterate>
> 
> Thanks in Advance
> 
> Regs.,
> senthil
> 
>

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

Reply via email to