Hi! I am newable in SPRING, and have the following question:
I am trying to use MultiActionController for MVC implementation.I decided to delegate the request from the
JSP file to some class I wrote (i.e there is NO inheritance from MultiActionController).
I am getting the error:
No mapping found for HTTP request with URI [/SpringMVC/index.dispatch] in DispatcherServlet with name 'dispatcher'
I added log prints and I see that my requests do not handled by MultiActionController at all!
my web.xml has the next lines:
dispatcher-servlet.xml is as follows:Code:... <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>*.dispatch</url-pattern> </servlet-mapping> ....
my JSP has the next target on submit:Code:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="..." xmlns:xsi="..." xsi:schemaLocation="..."> <bean id="propsResolver" class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver"> <property name="mappings"> <value> /index.dispatch=goToNextForm /*.dispatch=goToNextForm </value> </property> </bean> <bean id="paramMultiController" class="org.springframework.web.servlet.mvc.multiaction.MultiActionController"> <property name="methodNameResolver" ref="propsResolver"/> <property name="delegate"> <bean class="controller.Form1Controller" /> </property> </bean> <!-- MULTI CONTROLLER END --> </beans>
The question i what do I do wrong????? why the request does not handled by MultiActionController?Code:<form action="index.dispatch"> ... </form>


Reply With Quote

