• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on velocity template?

 
manish ghildiyal
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have written a velovity template to display data in my java objects.
I pass collection of objects to template which then iterate the collection and display the data in rows and columns form.

If one of the field in java object is a collection of values, then template is placing all the collection values in same box, with values separated by ',' and surrounded by '[]'.
What I want is that every single value is displayed in next row(other columns would then be empty for those rows). But not able to figure out how to do that.
Any idea how to achieve this?

With regards
Manish
 
Ivan Jozsef Balazs
Rancher
Posts: 972
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can iterate through a collection like this
 
manish ghildiyal
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Ivan.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic