-
Nov 28th, 2005, 04:33 PM
#1
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>
<bean id="updateEventRecapController"
class="com.enttek.ems.server.web.recap.UpdateEvent RecapController">
</bean>
<bean id="showEventRecapController"
class="com.enttek.ems.server.web.recap.ShowEventRe capController">
</bean>
<bean id="publicUrlMapping"
class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="recap/update">updateEventRecapController</prop>
<prop key="recap/show">showEventRecapController</prop>
</props>
</property>
</bean>
Here is the web-views.properties 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.
Thanks!
David
-
Nov 30th, 2005, 04:25 AM
#2
How are you telling your controllers which views to render?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules