You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eric Rank <er...@lo-fi.net> on 2006/12/08 23:34:41 UTC
[s2]
I've noticed that there's an EL-like syntax used within some tags in
the sample jsp's that ship with the Struts 2 apps. Namely:
<s:a href="%{url}">
How does the percent sign work in the line above? When I use ${url}
it works just as well.
Am I just behind on Expression Language specs? or is this a
convention that I'm unaware of in the new Struts 2 tags?
Thanks for getting me up to speed!
Eric Rank
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [s2]
Posted by Eric Rank <er...@lo-fi.net>.
Excellent! Thanks Don!
E.
On Dec 8, 2006, at 5:56 PM, Don Brown wrote:
> The '%' tells Struts to parse it with OGNL. OGNL is a very powerful
> expression language used by the core of Struts 2. It supports
> advanced features like method calls, projection, and data conversion.
> You can find more information about ognl here:
> http://www.opensymphony.com/ognl/
>
> Don
>
> On 12/8/06, Eric Rank <er...@lo-fi.net> wrote:
>> I've noticed that there's an EL-like syntax used within some tags in
>> the sample jsp's that ship with the Struts 2 apps. Namely:
>>
>> <s:a href="%{url}">
>>
>> How does the percent sign work in the line above? When I use ${url}
>> it works just as well.
>>
>> Am I just behind on Expression Language specs? or is this a
>> convention that I'm unaware of in the new Struts 2 tags?
>>
>> Thanks for getting me up to speed!
>>
>> Eric Rank
>>
>> ---------------------------------------------------------------------
>> 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
Re: [s2]
Posted by Don Brown <do...@gmail.com>.
The '%' tells Struts to parse it with OGNL. OGNL is a very powerful
expression language used by the core of Struts 2. It supports
advanced features like method calls, projection, and data conversion.
You can find more information about ognl here:
http://www.opensymphony.com/ognl/
Don
On 12/8/06, Eric Rank <er...@lo-fi.net> wrote:
> I've noticed that there's an EL-like syntax used within some tags in
> the sample jsp's that ship with the Struts 2 apps. Namely:
>
> <s:a href="%{url}">
>
> How does the percent sign work in the line above? When I use ${url}
> it works just as well.
>
> Am I just behind on Expression Language specs? or is this a
> convention that I'm unaware of in the new Struts 2 tags?
>
> Thanks for getting me up to speed!
>
> Eric Rank
>
> ---------------------------------------------------------------------
> 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