handling method:
public ModelAndView go(HttpServletRequest request, HttpServletResponse response)
i found it can't support that.
handling method:
public ModelAndView go(HttpServletRequest request, HttpServletResponse response)
i found it can't support that.
Can you elaborate more on it? What are you trying to do, what is expected and what is the actual result.
1. code sample():
public class TestController extends MultiActionController{
public ModelAndView add(HttpServletRequest request, HttpServletResponse response) {
System.out.println("add");
return new ModelAndView ("add");
}
}
<bean id="simpleUrlhandlerMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/test.do">testController </prop>
</props>
</property>
</bean>
2. then startup tomcat.
access in IE browser: http://localhost:8080/demo/test.do?doAction=add
response add.jsp successfully
3. add a handling method in class TestController:
public ModelAndView go(HttpServletRequest request, HttpServletResponse response){
return new ModelAndView ("add");
}
4. access url: http://localhost:8080/demo/test.do?doAction=go
At this time i got a log info in Tomcat console:...handleNoSuchRequestHandlingMethod... No request handling method with name 'go' in class....
project environment:
JDK 1.5
Spring 2.5
Tomcat 6.0.18
From the source I can tell that this is just something that our JRebel Spring plugin does not reload yet. The SimpleUrlHandlerMapping caches the mappings and does not reload them. I've added a feature request to our system for it.
more info:
The 'NoSuchRequestHandlingMethodException' exception is throwed by class MultiActionController, code snippet below(copy from class MultiActionController):
protected final ModelAndView invokeNamedMethod(String methodName, HttpServletRequest request, HttpServletResponse response) throws Exception {
Method method = (Method) this.handlerMethodMap.get(methodName);
if (method == null) {
throw new NoSuchRequestHandlingMethodException(methodName, getClass());
}
......
}
G6A3dE apomtvmrrfes, [url=http://mknrwneuyghq.com/]mknrwneuyghq[/url], [link=http://nnewobfqvmnu.com/]nnewobfqvmnu[/link], http://vuthljskulzy.com/