You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Karr, David" <da...@attws.com> on 2002/09/18 21:15:23 UTC

Best way to forward to an ActionForward from inside a Filter?

I have a situation which is best handled by writing a servlet filter.
Depending on the results of the filter, I need to forward the request to a
different page.  I'd really like to specify that page in my
struts-config.xml as a global forward and reference that directly or
indirectly from the filter.  What is the best way to handle this?  This is
easy if I just put code inside each Struts Action "execute" method, but for
what I need to do, a Filter makes more sense.