struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mohan rao <mohanara...@gmail.com>
Subject How to compare string reference variables using ognl?
Date Mon, 12 Dec 2011 08:08:56 GMT
Please delete my previous thread my query was not posted completely.

<s:set var="selectedOffer" value="%{offers.dicountkey}"/>
<s:iterator var ="entry" value = "#session.eligibleEcOffersMap">
<s:set var="queryString" value="%{#entry.key}"/>
T/F<s:property value="selectedOffer.equals(queryString)"/>  Nothing is
printing.

T/F<s:property value="#selectedOffer== #queryString"/> Always printing false
even both are having same values.

Thanks.

--
View this message in context: http://struts.1045723.n5.nabble.com/How-to-compare-string-reference-variables-using-ognl-tp5067537p5067537.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