struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mohan rao <>
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:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message