You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Fullam, Jonathan" <Jo...@RIAG.com> on 2003/12/03 17:34:32 UTC

RE: Variable value in logic:equal tag Help Req [SOLVED]

told ya so...  ;-)

-----Original Message-----
From: Shakti [mailto:shakti_simanta@hotmail.com]
Sent: Wednesday, December 03, 2003 11:35 AM
To: Struts Users Mailing List; Jonathan.Fullam@riag.com;
husted@apache.org
Subject: Re: Variable value in logic:equal tag Help Req [SOLVED]


Hey that <% refVar.toString %> worked man .. :-) ... at last. . now i won't
have to sit for the whole nite .. :-) ..
chao ..
Shakti

----- Original Message -----
From: "Shakti" <sh...@hotmail.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<Jo...@RIAG.com>; <hu...@apache.org>
Sent: Wednesday, December 03, 2003 9:52 PM
Subject: Re: Variable value in logic:equal tag Help Req


> Hi ,
>     I am still not able to make out as how can i compare values from two
> arraylists using logic iterate and logic equal , as none of them is a
> constant and i am still getting the same error.
> 1) I want to know how do i get the value of the variable created using
> bean:define ??? I am using <%= var %> but i am not getting it .. plz help
.
>
> Plz help me out of this .....
> Thanks
> Shakti
> ----- Original Message -----
> From: "Fullam, Jonathan" <Jo...@RIAG.com>
> To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> Sent: Wednesday, December 03, 2003 9:30 PM
> Subject: RE: Variable value in logic:equal tag Help Req
>
>
> > You can use a variable for the value attribute just as you did:  <%=
> > refValue %> as long as refValue is a variable in some scope on your
page.
> > Note that refValue must point to a String object because the equal tag
> > requires this (it converts the value of the bean pointed to by the name
> > attribute to a String for comparisons).  If refValue is not a String you
> can
> > try the following <%= refValue.toString() %>.
> >
> > -Jonathan
> >
> > -----Original Message-----
> > From: Shakti [mailto:shakti_simanta@hotmail.com]
> > Sent: Wednesday, December 03, 2003 10:27 AM
> > To: Struts Developers List; Struts Users Mailing List
> > Subject: Variable value in logic:equal tag Help Req
> >
> >
> > With reference this mail :
> > I trid this code but i am getting the error :can not resolve symbol
> refValue
> >
> :\bea\user_projects\mydomain\myserver\.wlnotdelete\mcc_mcc_4346456\jsp_ser
vl
> > et\__reassignta.java:376: cannot resolve symbol
> > probably occurred due to an error in /reassignta.jsp line 118:
> > <logic:equal name="reassignedTaId" value="<%= refValue %>" >
> >
> > I want to compare values from one arraylist with another using logic
equal
> > tag but in the value="" tag how i can give a variable ??
> > Plz Help !!!
> > Thanks & Regards,
> > Shakti
> >
> >
> >
> > ----- Original Message -----
> > From: "Nicolas De Loof" <ni...@cgey.com>
> > To: "Struts Developers List" <st...@jakarta.apache.org>
> > Sent: Monday, November 24, 2003 4:38 PM
> > Subject: Re: variable value in logic notEqual tag
> >
> >
> > > Use this :
> > >
> > > <bean:define id="refValue" name="beanRef" property="foo"/>
> > > <logic:equal name="beanToCompare" property="bar" value="<%= refValue
%>"
> >
> > > ...
> > > </logic:equal>
> > >
> > >
> > > Nico.
> > >
> > > ----- Original Message -----
> > > From: "Baljinder Singh" <ba...@interglobetechnologies.com>
> > > To: "Struts Developers List" <st...@jakarta.apache.org>
> > > Sent: Monday, November 24, 2003 12:03 PM
> > > Subject: variable value in logic notEqual tag
> > >
> > >
> > > > Hi All,
> > > >
> > > > I want to compare the variable in notEqual tag to value of another
> > variable
> > > > instead of comparing it to a fixed value. How can I do that ?
> > > >
> > > > Thanks
> > > > BS
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org