struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james_carbon5 <ja...@carbonfive.com>
Subject Re: Can anyone explain the leading "r" in OGNL list syntax?
Date Wed, 29 Aug 2007 19:24:25 GMT

Thanks for the response Dale. The "r" isn't a typo. If I remove it I get:

javax.servlet.ServletException: freemarker.core.ParseException: Error on
line ...
Found string literal: "foo"
Expecting: number

etc...

Thanks,
James


DNewfield wrote:
> 
> 
> I've not written much freemarker, but I'd bet the r is a typo.  The 
> important difference between the two tags you have are the single quotes 
> around the value of the list attribute.
> 
> james_carbon5 wrote:
>> <@s.select ... list=#{"foo":"foo stuff","bar":"bar stuff"} />
>> <@s.select ... list=r'#{"foo":"foo stuff","bar":"bar stuff"}' />
> 
> -Dale
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-anyone-explain-the-leading-%22r%22-in-OGNL-list-syntax--tf4349553.html#a12393954
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message