From my controller I set my Model and view like:
ModelAndView mav = new ModelAndView();
mav.setView("index");
mav.addObject("user", user);
mav.addObject("someCollection", someCollection);
return mav;
Now I want to create a helper type object that will take the someCollection and the user object as parameters.
My helper function will output some HTML etc., is this possible?