In a Spring 3 based web (portlet) application I have a controller with a method like this:
@RenderMapping public ModelAn
To achieve something similar to what you're doing, I found this blog entry useful.