This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Why use redirect= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why use redirect="true" " Watch "Why use redirect="true" " New topic
Author

Why use redirect="true"

Tahir Akram
Ranch Hand

Joined: Jul 03, 2007
Posts: 37
Hi;

Why should we use redirect="true", if I remove this tag my action forwarding works fine.
So why we specifically need this? Can some one educate me on this.



Thanks in advance.


Tahir Akram
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Tahir Akram wrote:Why should we use redirect="true"


it is nothing but response.sendRedirect("url") [making new request to the browser]. you better watch the address bar(url) of the browser for both cases.

Hope this helps
 
 
subject: Why use redirect="true"