Posted By

hansamann on 02/16/11


Tagged

grails fails springmvc


Versions (?)

GroovyPageView with UrlBasedViewResolver


 / Published in: Groovy
 

I am trying to setup a GroovyPageView with a URLBasedViewResolver as part of a Spring MVC project. Any ideas?

  1. <bean id="groovyPagesTemplateEngine" class="org.codehaus.groovy.grails.web.pages.GroovyPagesTemplateEngine">
  2.  
  3. </bean>
  4.  
  5. <bean id="groovyPageView" class="org.codehaus.groovy.grails.web.servlet.view.GroovyPageView">
  6. <property name="templateEngine" ref="groovyPagesTemplateEngine"/>
  7. </bean>
  8.  
  9. <!-- org.springframework.web.servlet.view.InternalResourceViewResolver -->
  10. <bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
  11. <!-- property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />-->
  12. <property name="viewClass" ref="groovyPageView"/>
  13. <property name="prefix" value="/WEB-INF/gsp/" />
  14. <property name="suffix" value=".gsp" />
  15. </bean>

Report this snippet  

You need to login to post a comment.