Hi Shane,

Juts a guess (not looked at logic tag in full) but value is being
interpreted literally, ie the string itr10.name. Use a bean:define to define
the returned value of itra10.name as a scripting variable, then use a
scriplet in the value tag to reference it :

<bean:define id="name" name="itr10" property "name"/>

<logic:equal name="itr1" property="name" value="<%=name%>">
        <%out.println("It works....");%>
</logic:equal>

Jon.

-----Original Message-----
From: Shane Warne [mailto:[EMAIL PROTECTED]] 
Sent: 15 June 2001 16:25
To: [EMAIL PROTECTED]
Subject: Logic:equals..

Hi,
I have this corky situation while using the
logic:equal tag.
Things is i have two iterators which get the same
element from the dbase. 
<logic:iterate id="itr1" name="itr1" type="class"> 
<logic:iterate id="itr10" name="itr100" type="class1">

<logic:equal name="itr1" property="name"
value="itr10.name">
<%out.println("It works....");%>
</logic:equal>
</logic:iterate> </logic:iterate> 

This doesn't work. Is there something wrong that i'm
doing. If the value is compared to a constant then the
equal tag works just fine. Please let me know how i
can compare a property from another variable as stated
above.

Thanks galore !!
Shane..




__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

Reply via email to