Mar 20th, 2007, 08:54 PM
I am new to spring and am having a problem resolving a page for a view. I have used the resource bundle resolver as well as the internalresource view resolver. Neither have worked and I must have some other problem. I am getting the following error:
org.springframework.web.servlet.PageNotFound.noHan dlerFound() No mapping for [/Spinnaker/WEB-INF/views/home.jsp] in DispatcherServlet with name 'Spinnaker'
org.springframework.web.servlet.PageNotFound.noHan dlerFound() No mapping for [/Spinnaker/404.jsp] in DispatcherServlet with name 'Spinnaker'
The url /Spinnaker/index.html goes to the controller, where the view "home" is trying to be resolved.
the home.jsp is in WEB-INF/views
THe web.xml has *.jsp and *.html mapped.
Thanks in advance for your help!!
Mar 20th, 2007, 09:34 PM
Can you pls paste the context mapping and the controller code where you render the model?
Originally Posted by dhook
Mar 21st, 2007, 07:22 AM
Thank you for your help. Here is some of the code.
The IndexController has rhe following code, where the model is a map with some parms and implments the AbstractController.
return new ModelAndView("home", "entity", model);
The context mapping is as follows.
<bean id="viewResolver" class="org.springframework.web.servlet.view.Intern alResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlVi ew"/>
<property name="requestContextAttribute" value="requestContext"/>
<property name="prefix" value="/WEB-INF/views/"/>
<property name="suffix" value=".jsp"/>
Here is the URL MAPPING
<bean id="publicUrlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
Thanks again for your help!!
Mar 22nd, 2007, 03:29 AM
The code snipplets look fine. But error certainly looks like a case of configuration problem.
Running out of ideas... Have you tried changing to some other type of controller - you may try SimpleFormController?
Pls let me know whether you have already found the problem.
Mar 22nd, 2007, 06:36 AM
I will try some other controllers to see if they work, but my guess is not. I tried the bundled resource viewer as well - same result. I will keep trying to see what I find