velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baisak, Ranjan" <ranjan.bai...@razorsight.com>
Subject Velocity and Spring
Date Sat, 06 May 2006 17:10:22 GMT
Hello,
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
view.addObject("message","Welcome");

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

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

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

-R

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