Preethi Siva 0 Newbie Poster

Hi,


I'm having a jsp where I'm comparing two customer beans and display diffs in red color and similarities in green.

I'm trying to achieve it like this:

------------------------------------

<%
color = "green";
%>
<tr>
<logic:notEqual name="customer1Customer" property="status"
    value="<bean:write  name='customer2Customer' property='status' />">
   <%
   color = "red";
   %>
</logic:notEqual>
    <td height="22" class="manage-row">Status</td>
    <td align="left" class="manage-row"><font color="<%=color %>">
         <nested:write name="customer1Customer" property="status" /></font>
    </td>
    <td height="22" class="manage-row">&nbsp;</td>
    <td align="left" class="manage-row"><font color="<%=color %>">
         <nested:write name="customer2Customer" property="status" /></font>
    </td>
</tr>

-----------------------------------

I'm comparing first customer's status which is "Active" with second customer's status , which is also "Active". But always it enters the logic Not equal tag and displays the status in red color(which is not right).

If i use scriplet instead of using <nested:write> in value attribute, it works fine.

Can anyone help me in solving this issue. Thanks much in advance.