struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pratt" <>
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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message