You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bhaskar Gopalan <bg...@adaptintel.com> on 2002/03/29 22:30:26 UTC

Setting Color inside logic:iterate

Hi,

is there anyway to set the color of a row from the bean being iterated?

My code is given below:

<logic:iterate id="loan" name="loans"
type="com.mortgagehub.cba.business.LoanSummaryBean">
<tr>
<td align="left" valign="middle" colspan=1>
<font size="2" color="#000000" face="Verdana">
<bean:write name="loan" property="status" filter="true"/>
</font>
</td>
</logic:iterate>

loan has a property called color that I'd like to use instead of ="#000000".

Pls tell me how to do it.

Thnx,
GB

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Setting Color inside logic:iterate

Posted by Slava_L <lo...@esstu.ru>.
the simples way how to do this
u should use :

<td color=<bean:write name="loan" property="color"/>> cell content as in urs
letter</td>

----- Original Message -----
From: "Bhaskar Gopalan" <bg...@adaptintel.com>
To: "Struts Group (E-mail)" <st...@jakarta.apache.org>
Sent: Saturday, March 30, 2002 5:30 AM
Subject: Setting Color inside logic:iterate


> Hi,
>
> is there anyway to set the color of a row from the bean being iterated?
>
> My code is given below:
>
> <logic:iterate id="loan" name="loans"
> type="com.mortgagehub.cba.business.LoanSummaryBean">
> <tr>
> <td align="left" valign="middle" colspan=1>
> <font size="2" color="#000000" face="Verdana">
> <bean:write name="loan" property="status" filter="true"/>
> </font>
> </td>
> </logic:iterate>
>
> loan has a property called color that I'd like to use instead of
="#000000".
>
> Pls tell me how to do it.
>
> Thnx,
> GB
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Setting Color inside logic:iterate

Posted by Sanjay Choudhary <ja...@yahoo.com>.
Bhaskar,

Try looking at
http://www.husted.com/struts/resources.htm#taglibs

from Amarda.  

-Sanjay
--- Bhaskar Gopalan <bg...@adaptintel.com> wrote:
> Hi,
> 
> is there anyway to set the color of a row from the
> bean being iterated?
> 
> My code is given below:
> 
> <logic:iterate id="loan" name="loans"
> type="com.mortgagehub.cba.business.LoanSummaryBean">
> <tr>
> <td align="left" valign="middle" colspan=1>
> <font size="2" color="#000000" face="Verdana">
> <bean:write name="loan" property="status"
> filter="true"/>
> </font>
> </td>
> </logic:iterate>
> 
> loan has a property called color that I'd like to
> use instead of ="#000000".
> 
> Pls tell me how to do it.
> 
> Thnx,
> GB
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>