• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP expression language equivalent in Freemarker.

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am really tired of finding a solution for this. So can anyone please help me solve this issue.

Let's say I have,
Collection <Person> persons = new LinkedList<Person>();
where Person is a Class having three attributes.
After adding three Person objects to 'persons collection'

I am setting request attribute as
request.setAttribute("persons", persons)


In jsp for a (custom) tag I am setting as

<jmesa:tableModel
id="tagBasic"
items="${persons}"
maxRows="12"
maxRowsIncrements="12,20,36"
stateAttr="restore"
var="bean"
>


This works,

But same thing in freemarker, I am unable to do that.

I tried items="${r\"${persons}\"}" , but I couldnot make it work.

So in one sentence how do you represent a el expression in freemarker.


Thanks,
Vivek.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic