struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pratt" <thechrispr...@gmail.com>
Subject Re: dynamic forwarding from Action class to any url
Date Fri, 07 Sep 2007 16:44:13 GMT
> > Is it possible to dynamicaly forward to any page from Action class
> > execute()

Make your Action implement ServletResponseAware, then just use the
response.sendRedirect() method to redirect to where you want to go.
Then return null from your action to let Struts 2 know that you've
handled things yourself.
  (*Chris*)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message