Well the "view" you return is just a string, it isn't a URL. The String is used by a ViewResolver, to resolve that String to a real view, which might or might not be an html, htm, jsp, Servlet, or any other view technology. So "home" is not necessarily even going to be in the URL.
The URL of the new page doesn't show up in the browser because the new page is being sent as the response of the first page's request. The solution to this problem is usually known under the term "redirect after post".
You'll either need to explicitly use a RedirectView or in the controller's bean definition, prepend the successView property with "redirect:". I also think you'll have to use the actual URL and not just a mapping name here.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
posted 10 years ago
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop