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 Status 404 error on redirect view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Status 404 error on redirect view" Watch "Status 404 error on redirect view" New topic
Author

Status 404 error on redirect view

Joseph Mokenela
Ranch Hand

Joined: Jan 18, 2011
Posts: 60

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

Joined: Mar 07, 2010
Posts: 1666
    
    7

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)


[How To Ask Questions][Read before you PM me]
Joseph Mokenela
Ranch Hand

Joined: Jan 18, 2011
Posts: 60

Thank you very much Bill,

I somehow missed the (/).


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Status 404 error on redirect view