File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Why use redirect="true"
Joined: Jul 03, 2007
Feb 16, 2009 03:14:40
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.
<action input="/serv/infoerror.jsp" name="LoginForm" path="/Login" type="com.tahir.security.LoginAction"> <forward name="chsuccess" path="/cardholderhome.do" redirect="true" /> </action>
Thanks in advance.
Joined: Jan 28, 2008
Feb 16, 2009 03:26:51
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:
subject: Why use redirect="true"
Refresh Problem : same action gets called
redirect=true in config does not work
Security Constraint problem
action forward problem : when "Failure"
Struts Cancel Button submits the form
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014