I’m working on a Spring 2.5 project where four different webapps have duplicate JSPs (they were all derivations of the same webapp). I want to introduce Freemarker so I can externalize and reuse these templates across all the webapps. However, I want to approach this iteratively since it’s going to be a big project, so I need JSP and Freemarker to live in harmony for awhile.
I know Spring allows chaining multiple ViewResolvers, but JSP’s InternalResourceViewResolver and Freemarker’s FreeMarkerViewResolver both state that they need to be last in the chain. I’ve tried to chain them anyways and specify an order priority, but no luck.
Freemarker seems to support JSPs to some degree, though I don’t really see how I could use that in a gradual migration (http://freemarker.sourceforge.net/docs/pgui_misc_servlet.html).
Does anyone have any ideas?
References
NixMash Post: The Move from Velocity to FreeMarker with Spring Boot
A Review of Java Template Engines – DZone Web Dev