This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 968
You can iterate through a collection like this
manish ghildiyal
Ranch Hand

Joined: Jan 12, 2013
Posts: 136
Thanks a lot Ivan.
Have you checked out Aspose?
subject: Help on velocity template?
It's not a secret anymore!