This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 404 error calling controller method after clicking on submit button
 
Similar Threads
XMLEncoder - Stackoverflowerror - overriding equals
Is the statement about EJB 3.x right?
Problem at insert with relationship JPA 2.0
Hibernate one-to-many?
Getting a 404 error when accessing a Spring controller method via a link