vlaxos,
Have you checked out org.springframework.web.util.WebUtils?
Code:
WebUtils.setSessionAttribute(request, "recentOrders", recentOrders);
I've always had luck with it, pretty simple to use and has a nice feature:
Code:
String userid = (String) WebUtils.getRequiredSessionAttribute(request, "userid");
Which throws an IllegalStateException exception if it's not found, otherwise, it gets populated with the session parameter.
Hope that helps,
Regards,
Joshua Preston
--
"The Guide says that there is an art to flying," said Ford, "or rather a knack. The knack lies in learning how to throw yourself at the ground and miss."