Hi Ben

Have you looked at using static reference?
@[EMAIL PROTECTED]

or standard OGNL
http://struts.apache.org/2.0.11/docs/ognl-basics.html
e.g. if accessible from pageContext
#attr.comments

M--
----- Original Message -----
From: "chengas123" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, November 13, 2007 6:55 PM
Subject: Re: [struts] Escaping Characters in Struts Property Tag


>
> That is basically what I had been trying all along.  Am I doing anything
> wrong?
> <s:property value="comments" /> returns what I am expecting.
> <s:property value="%{comments}" /> returns what I am expecting.
> <s:property
>
value="@[EMAIL PROTECTED](comments)
"
> /> returns nothing.
> <s:property
>
value="[EMAIL PROTECTED]@escapeJavaScript(comment
s)}"
> /> returns nothing.
>
> Thanks,
> Ben
>
>
>
> newton.dave wrote:
> >
> > --- chengas123 <[EMAIL PROTECTED]> wrote:
> >> That brings me back to my original question though
> >> which is how do I call that from within the property
> > tag?
> >
> > http://struts.apache.org/2.x/docs/ognl-basics.html
> >
> > See the section called "Accessing static properties".
> >
> > Nutshell:
> >
> > <s:property
> >
value="@[EMAIL PROTECTED](valWithQu
otes)"/>
> >
> > d.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/Escaping-Characters-in-Struts-Property-Tag-tf4799846.h
tml#a13737312
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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