This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Status 404 error on redirect view  RSS feed

 
Joseph Mokenela
Ranch Hand
Posts: 67
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have this error, I have a form, and on submission i display a successView but for some reason is shows and 404 error.
below is the code snippet.

and the error log says No mapping found on registerSuccess.

How do I map the registerSuccess?

Thanks in advanace
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you may have misunderstood what the redirect: prefix does. This prefix signals the request should be redirected to the path specified.

So for example:

(notice the /)

will redirect the request to http://my.domain.com/registerSuccess (which you don't have a RequestMapping for)
 
Joseph Mokenela
Ranch Hand
Posts: 67
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Bill,

I somehow missed the (/).


Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!