I'm try to compare two string fields in a MySql table row
here's my code that evaluate false even if the strings are identical:

<sql:query var="filiali" dataSource="${ds}">
         SELECT * FROM FILIALI_EXT_LOG LEFT JOIN FILIALI_EXT USING (ID)
        WHERE FILIALI_EXT_LOG.LASTMODI > <c:out
value="${user.lastTimeStamp}"/>
 </sql:query>

<c:forEach var="row" items="${filiali.rows}">
        <c:set var="campi" value="51"/>
            <c:forEach var="i" begin="0" end="${campi}">

                    <c:if test="${row.columns[i] == row.columns[i]}">
                            evaluates true OK
                    </c:if>

                    <c:if test="${row.columns[i] == row.columns[i+campi]}">
                            evaluates false even if Strings are identical
                    </c:if>

Thank You



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to