Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Status 404 error on redirect view

 
Joseph Mokenela
Ranch Hand
Posts: 66
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: 66
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