is it possible this is comparing string objects as opposed to string values
:-) Tom Lister * 020 7612 3030 * [EMAIL PROTECTED] -----Original Message----- From: Lister, Tom (ANTS) [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 11:14 To: 'Struts Users Mailing List' Subject: logic equals problem Hi we can't get logic:notEqual to work in the following snippet We are trying to perform an action on the change of a string currency variable the logic not equal always evaluates to true even though we set the current value within the loop I am i missing something obvious here? <bean:define id="dataSet" name="<%=ants.mo.sabre.web.Constants.EXPOSURECONCENTRATIONEXPORT_KEY%>" property="data"/> <%! String currencyBlock =""; %> <logic:iterate id="data" name="dataSet"> <bean:define id="dataPoints" name="data" property="dataPoints"/> <logic:notEqual name="data" property="sortColumns.currencyCode" value="<%=currencyBlock%>"/> <tr> <td colspan=9></td> <logic:iterate id="dataPoint" name="dataPoints"> <bean:define id="dataValue" name="dataPoint" property="value" type="ants.mo.sabre.ExposureConcentration.ExposureConcentrationDPVO"/> <th nowrap="true"><bean:write name="dataValue" property="dataPointDate"/></th> </logic:iterate> </tr> <% ExposureConcentrationExportVO dataTemp = (ExposureConcentrationExportVO) data; currencyBlock = ( (ants.mo.sabre.ExposureConcentration.ExposureConcentrationSensitivitySortVO) dataTemp.getSortColumns()).getCurrencyCode(); System.out.println(currencyBlock); %> </logic:notEqual/> :-) Tom Lister * 020 7612 3030 * [EMAIL PROTECTED] *************************************************************************** This email message contains confidential information for the above addressee only. If you are not the intended addressee you must not disclose or use the information in any manner whatsoever. Any opinion or views contained in this email message are those of the sender, do not represent those of the Company in any way and reliance should not be placed upon its contents. Unless otherwise stated this email message is not intended to be contractually binding. Where an Agreement exists between our respective companies and there is conflict between the contents of this email message and the Agreement then the terms of that Agreement shall prevail. Abbey National Treasury Services plc. Registered in England. Registered Office: Abbey House, Baker Street, London NW1 6XL. Company Registration No: 2338548. Regulated by the FSA *************************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>