This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Understanding redirect 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 "Understanding redirect" Watch "Understanding redirect" New topic
Author

Understanding redirect

Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Hi all,

What actually happens in the back-end when I return a String "redirect:hello.html".

How does this gets redirected to the path /hello.html

Regards,
Ashwin


Ashwin Sridhar
SCJP | SCWCD | OCA
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Please have a look at the following section of the Spring doc, it discusses first the redirect view and then the redirect: prefix and the reasoning behind introducing it. I think that should answer your question.

http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/mvc.html#mvc-redirecting


[How To Ask Questions][Read before you PM me]
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Thank you. That was useful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Understanding redirect
 
Similar Threads
Redirecting of one frame to another frame
How to show recent blogs in my webpage
redirect ?
Redirect content to an external Page Flow
Debug logging on Sun Appserver vs. Tomcat