Hi,

Just because two objects print the same doesn't mean that they are  
equal for the EL, just that their toString() method returns the same  
string.

Florent

On 15 Oct 2008, at 19:09, [EMAIL PROTECTED] wrote:
> I have the following source code:
> -------------------------------------------------
>               <c:set var="var1" value="${rep2.doc.name}" />
>               <c:set var="var2" value="myValue" />
>               
>               var1=[<h:outputText value="${var1}"/>]<br/>
>               var2=[<h:outputText value="${var2}"/>]<br/>
>               
>               <c:if test="${var1 == var2}" >
>                       OK
>               </c:if>
> ---------------------------------------------------
>
> the result in my web browser is :
> var1=[myValue]
> var2=[myValue]
>
> but "OK" is never displayed ...
> Did I miss something ?
>
> thanks
> Xavier.
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm

-- 
Florent Guillaume, Head of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to