velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baisak, Ranjan" <>
Subject Velocity and Spring
Date Sat, 06 May 2006 17:10:22 GMT
I am facing some problem while displaying variables in velocity template.
The controller having following view
ModelAndView view = new ModelAndView("index","channels",channels);//channels is a Collection

In velocity template, I am accessing message and Collection in following way

#foreach ( $item in ${channels})
On this iteration, \$item refers to the value $item.

But it is not working. Any suggestion how to make it work.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message