No mapping found error using Spring MVC?

In your current configuration onSubmit() is mapped to hello/hello. Htm due to ControllerClassNameHandlerMapping.

In your current configuration onSubmit() is mapped to /hello/hello. Htm due to ControllerClassNameHandlerMapping. If you want to map it to /hello.

Htm, you need to replace ControllerClassNameHandlerMapping with DefaultAnnotationHandlerMapping (usually this mapping is used by default, but in your case defaults are not applied because you declare handler mappings manually).

Axtavt: That did the trick! It took a little digging to figure out what package DefaultAnnotationHandlerMapping comes from, but when I found it and used it, I no longer got the 404 error. Thanks so much!

Can you recommend a good Spring reference that could have helped me to avoid this problem in the first place? – Clayton Nov 11 '10 at 22:32 @Clayton: Actually, most of the modern Spring tutorials are focused on using DefaultAnnotationHandlerMapping only, so they don't cover interaction with other HandlerMappings. – axtavt Nov 12 '10 at 17:33.

The cause of the failure may be the parameter, "@ModelAttribute("command") Name command". This type of parameter is usually used for post method.

Tuesday: you have uncovered an error that I have not even been able to arrive at yet because of the 404 error. So while your answer did not solve the 404, it does point out another mistake I made. Thanks for taking the time to respond!

– Clayton Nov 11 '10 at 22:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions