aspose file tools
The moose likes Struts and the fly likes Why use redirect= Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Why use redirect="true"
 
Similar Threads
action forward problem : when "Failure"
Security Constraint problem
Refresh Problem : same action gets called
redirect=true in config does not work
Struts Cancel Button submits the form