Apr 16th, 2008, 02:14 PM
use FreeMarkerViewResolver and InternalResourceViewResolver
maybe I use FreeMarkerViewResolver and InternalResourceViewResolver(JSP) at the same time?
I try to set different order, when order of FreeMarkerViewResolver is less than order of InternalResourceViewResolver, it always try to find *.ftl instead of *.jsp.
Is there a way to put these view resolver in a chain?
Apr 16th, 2008, 04:21 PM
No...Both are instances of a UrlBasedViewResolver. You will need a different view resolver for either your jsp's or your ftl's. I would checkout the ResourceBundleViewResolver.
Also check my post answering the same question (but then for Velocity) here.