You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Baljinder Singh <ba...@interglobetechnologies.com> on 2003/11/24 12:03:46 UTC

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


Variable value in logic:equal tag Help Req

Posted by Shakti <sh...@hotmail.com>.
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" <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


Variable value in logic:equal tag Help Req

Posted by Shakti <sh...@hotmail.com>.
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" <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-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Re: variable value in logic notEqual tag

Posted by Nicolas De Loof <ni...@cgey.com>.
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


Re: variable value in logic notEqual tag

Posted by Nicolas De Loof <ni...@cgey.com>.
First, please ask such things on struts users-list.

Second, using <%= pageCount %> as attribute for a jsp tag is'nt a scriptlet, it is a "runtime experssion". This is not
considered beeing a bad design (you cannot split java code in multiple blocs as you can with scriptlets)

You can use Expression Language with struts-el tags if you consider it better (and if you use a modern servlet
container).

Nico.


----- Original Message ----- 
From: "Baljinder Singh" <ba...@interglobetechnologies.com>
To: "Struts Developers List" <st...@jakarta.apache.org>
Sent: Monday, November 24, 2003 12:17 PM
Subject: RE: variable value in logic notEqual tag


> In continuation to my previous message, I want to do this without using
> scriptlets.
>
> Not something like following:
>
> <bean:define id="pageCount" name="countryAF" property="pageCount" />
> <logic:notEqual name="countryAF" property="pageNo" value="<%=pageCount%>">
> ..
> </logic:notEqual>
>
> -----Original Message-----
> From: Baljinder Singh
> [mailto:baljinder.singh@interglobetechnologies.com]
> Sent: Monday, November 24, 2003 4:34 PM
> To: Struts Developers List
> 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-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


RE: variable value in logic notEqual tag

Posted by Baljinder Singh <ba...@interglobetechnologies.com>.
In continuation to my previous message, I want to do this without using
scriptlets.

Not something like following:

<bean:define id="pageCount" name="countryAF" property="pageCount" />
<logic:notEqual name="countryAF" property="pageNo" value="<%=pageCount%>">
..
</logic:notEqual>

-----Original Message-----
From: Baljinder Singh
[mailto:baljinder.singh@interglobetechnologies.com]
Sent: Monday, November 24, 2003 4:34 PM
To: Struts Developers List
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