aspose file tools*
The moose likes Spring and the fly likes 404 error calling controller method after clicking on submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "404 error calling controller method after clicking on submit button" Watch "404 error calling controller method after clicking on submit button" New topic
Author

404 error calling controller method after clicking on submit button

Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 104
I have another 404 error. This time it's on a controller method. It's not being called when I click on the submit button. Instead, I get the 404 error. Here is the initial line of my form.



Here is my controller method.



If it matters, here is my Bulletin object.

Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 104
Problem solved by removing the slash from the action value in my form. My research indicates that 404 errors in Spring occur when the requested URL doesn't match any of the mapped patterns.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 404 error calling controller method after clicking on submit button