In fact, I've just tried 

aContainerObject.set2.contains(top)

And it works...
Is there a documentation on the use of # to acces to a variable?

-----Message d'origine-----
De : LEONARD Julien (Consulting for ACCOR Hotels) [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 5 décembre 2007 12:34
À : Struts Users Mailing List
Objet : RE: [S2] Ognl in s:if

Yes, It was my first try....
And it doesn't work too. 

-----Message d'origine-----
De : GF [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 5 décembre 2007 12:30
À : Struts Users Mailing List
Objet : Re: [S2] Ognl in s:if

Have you tried:

aContainerObject.set2.contains(#top)

On Dec 5, 2007 11:27 AM, LEONARD Julien (Consulting for ACCOR Hotels) < [EMAIL 
PROTECTED]> wrote:

> Hello all,
>
> I have two Set of objects. The set1 is the reference set (with all
> objects) and set2 some on list1 elements.
> All elements are the same class and I have redefined hashCode and 
> equals method.
>
> I want to do this :
>
> <s:iterator value="set1">
>        <s:if test="%{#top in aContainerObject.set2}">
>                true
>        </s:if>
>        <s:else>false</s:else>
> </s:iterator>
>
> But it don't work... Any idea ?
>
> Julien
>
>
> This e-mail, any attachments and the information contained therein 
> ("this
> message") are confidential and intended solely for the use of the 
> addressee(s). If you have received this message in error please send 
> it back to the sender and delete it. Unauthorized publication, use, 
> dissemination or disclosure of this message, either in whole or in 
> part is strictly prohibited.
> **********************************************************************
> Ce message electronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message ( ci apres "le message" ), sont 
> confidentiels et destines exclusivement a l'usage de la  personne a 
> laquelle ils sont adresses. Si vous avez recu ce message par erreur, 
> merci  de le renvoyer a son emetteur et de le detruire. Toutes 
> diffusion, publication, totale ou partielle ou divulgation sous 
> quelque forme que se soit non expressement autorisees de ce message, sont 
> interdites.
> **********************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

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

Reply via email to