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:[EMAIL PROTECTED] 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_servl 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" <[EMAIL PROTECTED]> To: "Struts Developers List" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: "Struts Developers List" <[EMAIL PROTECTED]> > 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: [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]