Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Understanding redirect

 
Ashwin Sridhar
Ranch Hand
Posts: 277
Flex Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ashwin Sridhar
Ranch Hand
Posts: 277
Flex Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. That was useful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic