• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

JSP expression language equivalent in Freemarker.

Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • 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


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.

You've gotta fight it! Don't give in! Read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!