PDA

View Full Version : Can I set "allowSessionOverride" with VelocityView


Michael Kastner
Oct 5th, 2005, 04:25 AM
This seems to be connected with my previously posted question

http://forum.springframework.org/showthread.php?t=18676

and would propably fix it. But as it seems VelocityViewResolver does not let me set "allowSessionOverride"

Where should I set it, when using velocity?

davison
Oct 5th, 2005, 05:53 AM
VelocityViewResolver doesn't expose the property, so you can't set it at that level. You would have to set the property explicitly on your Velocity views and use something like ResourceBundleViewResolver or XmlViewResolver to resolve them. (Note, you can use a parent bean to make this slightly less painful).

I've added the ability to specify allowSessionOverride and allowRequestOverride on the view resolver - it will be in 1.2.6

(for info, the same problem and fix applies to FreeMarker views too)

Regards,

Michael Kastner
Oct 5th, 2005, 09:30 AM
Thank you very much davison for the hint.

That helps a lot.