struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: [S2] Ognl in s:if
Date Wed, 05 Dec 2007 15:05:44 GMT
take a look at references to "other than [root] object access" at
http://struts.apache.org/2.0.6/docs/ognl.html

M--
----- Original Message -----
From: "GF" <ganfab@gmail.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, December 05, 2007 6:42 AM
Subject: Re: [S2] Ognl in s:if


I have some problems to understand it too :-)
I often just do many tries until it works :-)

On Dec 5, 2007 12:38 PM, LEONARD Julien (Consulting for ACCOR Hotels) <
julien.leonard@consulting-for.accor.com> wrote:

> 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:
> julien.leonard@consulting-for.accor.com]
> 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:ganfab@gmail.com]
> 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) <
> julien.leonard@consulting-for.accor.com> 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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message