Announcement Announcement Module
No announcement yet.
materialized View is [null] ?? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • materialized View is [null] ??

    I know this has got to be some stupid configuration problem of my own, but I've been searching and can't find the problem. Maybe someone with more experience can spot it for me? :-)

    This is my servlet.xml:
    <bean id="viewResolver"
    class="org.springframework.web.servlet.view.Resour ceBundleViewResolver">
    <property name="basename"><value>web-views</value></property>

    <bean id="updateEventRecapController"
    class="com.enttek.ems.server.web.recap.UpdateEvent RecapController">

    <bean id="showEventRecapController"
    class="com.enttek.ems.server.web.recap.ShowEventRe capController">

    <bean id="publicUrlMapping"
    class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="mappings">
    <prop key="recap/update">updateEventRecapController</prop>
    <prop key="recap/show">showEventRecapController</prop>

    Here is the file:

    showEventRecap.class = com.enttek.ems.server.web.recap.ShowEventRecapView
    showEventRecap.url = /WEB-INF/html/web/recap/showEventRecap.jsp

    showRecapResult.class = com.enttek.ems.server.web.recap.ShowRecapResultVie w
    showRecapResult.url = /WEB-INF/html/web/recap/showRecapResult.jsp

    I execute this by keying the URL into my browser and get the error message:
    2005-11-28 17:19:44,288 [http-8080-Processor25] ERROR DispatcherServlet - Could not complete request
    javax.servlet.ServletException: ModelAndView [ModelAndView: materialized View is [null]; model is {command=com.enttek.ems.server.web.recap.RecapInfo @506147, org.springframework.validation.BindException.comma nd=org.springframework.validation.BindException: BindException: 0 errors}] neither contains a view name nor a View object in servlet with name 'web'

    This is my first attempt trying to put together some web pages with the Spring Web stuff, so I'm a little overwelmed with all of the options right now. Any help is appreciated.

  • #2
    How are you telling your controllers which views to render?