File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 103
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: 103
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 404 error calling controller method after clicking on submit button
 
Similar Threads
Getting a 404 error when accessing a Spring controller method via a link
Hibernate one-to-many?
Is the statement about EJB 3.x right?
XMLEncoder - Stackoverflowerror - overriding equals
Problem at insert with relationship JPA 2.0