You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Security Management <li...@secmgmt.com> on 2009/08/25 19:01:41 UTC

OT RE: Literal in OGNL

Thanks, and sorry for sending that to the wrong list, it was mean for the
users list...

>-----Original Message-----
>From: Wes Wannemacher [mailto:wesw@wantii.com]
>Sent: Tuesday, August 25, 2009 12:55 PM
>To: Struts Developers List
>Subject: Re: Literal in OGNL
>
>just put single quotes around it and OGNL will treat it like a string -
>
><s:url var="day_url" action="historyChart"><s:param name="period"
> value="%{'day'}"/></s:url>
> <s:url var="month_url" action="historyChart"><s:param name="period"
> value="%{'month'}"/></s:url>
> <s:url var="year_url" action="historyChart"><s:param name="period"
> value="%{'year'}"/></s:url>
>
>On Tue, Aug 25, 2009 at 12:53 PM, Security
>Management<li...@secmgmt.com> wrote:
>> In the following, I want the param value to be "day" or "month"
>literally.
>> How does that work?
>>
>> This does not:
>>
>> <s:url var="day_url" action="historyChart"><s:param name="period"
>> value="%{day}"/></s:url>
>> <s:url var="month_url" action="historyChart"><s:param name="period"
>> value="%{month}"/></s:url>
>> <s:url var="year_url" action="historyChart"><s:param name="period"
>> value="%{year}"/></s:url>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>
>
>
>
>--
>Wes Wannemacher
>
>Head Engineer, WanTii, Inc.
>Need Training? Struts, Spring, Maven, Tomcat...
>Ask me for a quote!
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>For additional commands, e-mail: dev-help@struts.apache.org


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