File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Status 404 error on redirect view

 
Joseph Mokenela
Ranch Hand
Posts: 66
Eclipse IDE Hibernate Java
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Bill,

I somehow missed the (/).


Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic