Skip to content

Instantly share code, notes, and snippets.

@tburch
Created January 6, 2011 17:22
Show Gist options
  • Save tburch/768211 to your computer and use it in GitHub Desktop.
Save tburch/768211 to your computer and use it in GitHub Desktop.
ScalateViewResolver Spring MVC integration
<bean id="scalateUrlBasedViewResolver" class="org.fusesource.scalate.spring.view.ScalateViewResolver" p:order="#{contentNegotiatingViewResolver.order+1}">
<property name="prefix" value="/WEB-INF/views/scalate/" />
<property name="suffix" value=".jade" />
</bean>
<bean id="urlBasedViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver" p:order="#{scalateUrlBasedViewResolver.order+1}">
<property name="prefix" value="/WEB-INF/views/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment