RE: [S2] s:text issue

2007-02-04 Thread Djordje Trifunovic
] s:text issue Wesley - yes, that's it. Thanks for both clarifying my question and answering it. :) Now, this really solves the problem when the property is on value stack. Is there a way to access other (non-root) objects using this notation? E.g. I have attribute title defined in Tiles, also

RE: [S2] s:text issue

2007-02-04 Thread Dave Newton
--- Djordje Trifunovic [EMAIL PROTECTED] wrote: because unlike in s:properties and some other tags, in s:text %{...} cannot be omitted. Just as a clarification; the reason it can't be omitted in *your* case is because you needed to evaluate an expression to be used as the name attribute.

RE: [S2] s:text issue

2007-02-04 Thread Djordje Trifunovic
Subject: RE: [S2] s:text issue --- Djordje Trifunovic [EMAIL PROTECTED] wrote: because unlike in s:properties and some other tags, in s:text %{...} cannot be omitted. Just as a clarification; the reason it can't be omitted in *your* case is because you needed to evaluate an expression

RE: [S2] s:text issue

2007-02-04 Thread Dave Newton
--- Djordje Trifunovic [EMAIL PROTECTED] wrote: However, I never enjoyed having JSP code (including EL) in my pages, unless absolutely necessary. So far, I haven't really bumped into anything that couldn't be solved with S2 tags with some OGNL :) What's the difference? (I mean from a

[S2] s:text issue

2007-02-02 Thread Djordje Trifunovic
Hi, Using Struts2 (2.0.5 snapshot) in a project, I hit the following problem: I have a resource bundle key that I need to use with s:text tag to retrieve a text from my resource bundle. The name of the key is in a property myKey in the value stack. The value of myKey is some.resource.key, and

Re: [S2] s:text issue

2007-02-02 Thread Ian Roughley
I think you may be confused, you say The value of myKey is some.resource.key, and in the property file I have: some.resource.key = Some text In fact, some.resource.key is the key and some text is the value. Try - s:text name=some.resource.key / /Ian -- From Down Around, Inc.

RE: [S2] s:text issue

2007-02-02 Thread Wesley Wannemacher
] s:text issue I think you may be confused, you say The value of myKey is some.resource.key, and in the property file I have: some.resource.key = Some text In fact, some.resource.key is the key and some text is the value. Try - s:text name=some.resource.key / /Ian -- From

Re: [S2] s:text issue

2007-02-02 Thread Ian Roughley
had a bunch of trouble understanding OGNL and it might help you if you want it off-list. -Original Message- From: Ian Roughley [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 3:07 PM To: Struts Users Mailing List Subject: Re: [S2] s:text issue I think you may be confused

RE: [S2] s:text issue

2007-02-02 Thread Djordje Trifunovic
that step if it is not necessary. I would appreciate if you could send me off-list the post about OGNL. Thanks! Dj. -Original Message- From: Wesley Wannemacher [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 9:12 PM To: Struts Users Mailing List Subject: RE: [S2] s:text issue I