How about using jstl instead:

<c:if test="${planModel.plandesc1 == planModel.planDesc2}">
...
</c:if>

H

On Tue, 1 Feb 2005 13:41:23 +0100, Cedric Levieux <[EMAIL PROTECTED]> wrote:
> and that's why I have my own tags to make this kind of tests between my
> beans :p
> 
> ----- Original Message -----
> From: "Kishore Senji" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Thursday, January 27, 2005 7:55 AM
> Subject: Re: Regarding LOGIC tags
> 
> > On Thu, 27 Jan 2005 10:48:47 +0530, Krishna Mohan Radhakrishnan
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi all,
> > > I have a very simple doubt on struts equal tag.
> > >
> > > The tag is like this
> > > <logic:equal name="planModel" property="plandesc1" value="planDesc2">
> > > </logic:equal>
> >
> > Here is one way:
> >
> > <bean:define id="planDesc2" name="planModel" property="planDesc2"/>
> > <logic:equal name="planModel" property="plandesc1" value="<%=planDesc2%>">
> > </logic:equal>
> >
> > >
> > > Here planDesc1 and planDesc2 are both beans of the same class planModel.
> > >
> > > Can I have a comparison with 2 beans of the same class.
> > > I heard that logic equal comparison has to be done to a constant valu.
> > >
> > > Any other method to do this.
> > >
> > > Regards,
> > > Krishna Mohan
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to