A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
It is sorta covered in the
JavaRanch Style Guide
subject: Why use redirect="true"
Refresh Problem : same action gets called
Security Constraint problem
action forward problem : when "Failure"
redirect=true in config does not work
Struts Cancel Button submits the form
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013