This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Understanding redirect" Watch "Understanding redirect" New topic

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


Ashwin Sridhar
Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

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.

[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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Understanding redirect
It's not a secret anymore!