# and @ are both OGNL directives as in
#foo.blah // returns foo.getBlah()
and in the case of statics
@[EMAIL PROTECTED]

http://struts.apache.org/2.0.11/docs/ognl-basics.html

M--
----- Original Message -----
From: "LEONARD Julien (Consulting for ACCOR Hotels)"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, November 20, 2007 5:21 AM
Subject: RE: [s2][ognl] <s:set .. > and <s:if .. > with a string.



In fact belong my experience of Struts2, the good way to make an expression
is with %{ }.
And for all variables declared in JSP (s:set, or status of s:iterator ) are
accessible with a #.
Maybe these variables are in pageContext and not the valueStack, and "#" is
the way to acces to the pageContext.

Julien

-----Message d'origine-----
De : GF [mailto:[EMAIL PROTECTED]
Envoyé : mardi 20 novembre 2007 11:15
À : Struts Users Mailing List
Objet : Re: [s2][ognl] <s:set .. > and <s:if .. > with a string.

Wow.
Now It works.
Can you explain me the difference with my version?
Or have you any good link to some guide to understand what I did wrong?

Thank you.

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


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 électronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci après "le message" ), sont
confidentiels et destinés exclusivement à l'usage de la  personne à laquelle
ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le
renvoyer à son émetteur et de le détruire. Toutes diffusion, publication,
totale ou partielle ou divulgation sous quelque forme que se soit non
expressément autorisées 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]

Reply via email to