struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mohan rao <mohanara...@gmail.com>
Subject Re: How to compare string reference variables using ognl?
Date Mon, 12 Dec 2011 08:04:42 GMT
<s:set var="selectedOffer" value="%{ecOffers.dicountKey}"/>
<s:iterator var ="entry" value = "#session.discountOffers">
<s:set var="queryString" value="%{#entry.key}"/>
<s:property value="selectedOffer.equals(queryString)"/>  It supposed to
print true or false. But not printing any value

<s:property value='#selectedOffer==#queryString'/> Printing false even they
are same. (I think it's checking reference.)

--
View this message in context: http://struts.1045723.n5.nabble.com/How-to-compare-string-reference-variables-using-ognl-tp5060783p5067525.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Mime
View raw message