wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 59

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: 1648
    
    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: 59

Thank you very much Bill,

I somehow missed the (/).


Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Status 404 error on redirect view
 
Similar Threads
@ModelAttribute
NO Getter method
using JQuery with Spring 3
Whats wrong here? 'PACKAGE'
Neither BindingResult nor plain target object for bean name 'user' available as request attribute