Re: How can we pass OGNL list to macro
Brian Pontarelli <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I'd avoid OGNL like the plague if I were you. There have been many
discussions about dropping it altogether. You should try to stick to
straight FreeMarker whenever possible.
-bp
On Jul 8, 2009, at 2:05 AM, spsarolkar wrote:
>
> I am developing website using struts2 and freemarker .
> I want to pass list created using
> ognl({'item1','item2','item3',...}) to
> macro.
> I tried following
> <#macro traverseList mylist>
> //
> </#macro>
> <traverseList mylist="%{'item1','item2',...}" ></traverseList>
> but getting error as 'unexpected collection or sequence..//..'
> Following works
> <traverseList mylist=['item1','item2',...] ></traverseList>
> But i want it through ognl because i want to pass expression like
> collectionName{expression} e.g. users.{?#this.age>20}
>
>
> --
> View this message in context: http://www.nabble.com/How-can-we-pass-OGNL-list-to-macro-tp24387168p24387168.html
> Sent from the freemarker-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited
> time,
> vendors submitting new applications to BlackBerry App World(TM) will
> have
> the opportunity to enter the BlackBerry Developer Challenge. See
> full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge