File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Help on velocity template?

manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136

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
Ivan Jozsef Balazs

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

Joined: Jan 12, 2013
Posts: 136
Thanks a lot Ivan.
I agree. Here's the link:
subject: Help on velocity template?
It's not a secret anymore!