GeeCON Prague 2014*
The moose likes Other Open Source Projects and the fly likes Help on velocity template? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Help on velocity template?" Watch "Help on velocity template?" New topic
Author

Help on velocity template?

manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
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

Joined: May 22, 2012
Posts: 867
    
    5
You can iterate through a collection like this
manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
Thanks a lot Ivan.
 
 
subject: Help on velocity template?