RE: Variable value in logic:equal tag Help Req [SOLVED]
told ya so... ;-) -Original Message- From: Shakti [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 11:35 AM To: Struts Users Mailing List; [EMAIL PROTECTED]; [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > 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:[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_ser vl > > et\__reassignta.java:376: cannot resolve symbol > > probably occurred due to an error in /reassignta.jsp line 118: > > > > > > 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 : > > > > > > > > > > > > > ... > > > > > > > > > > > > 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] > > > > - > 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]
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" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > 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:[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_ser vl > > et\__reassignta.java:376: cannot resolve symbol > > probably occurred due to an error in /reassignta.jsp line 118: > > > > > > 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 : > > > > > > > > > > > > > ... > > > > > > > > > > > > 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] > > > > - > 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]
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" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> 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:[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: > > > 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 : > > > > > > > > ... > > > > > > > > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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:[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: 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 : > > > > ... > > > > 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]