Struts + Servlet Filter + Global Forward problem
From: javaguy44 (javaguy44_at_yahoo.com)
Date: 03/30/04
- Next message: javaguy44: "Re: Struts...write to properties file!"
- Previous message: Andrew Thompson: "Re: AffineTransform problem"
- Next in thread: Wendy S: "Re: Struts + Servlet Filter + Global Forward problem"
- Reply: Wendy S: "Re: Struts + Servlet Filter + Global Forward problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Mar 2004 10:09:47 -0800
Hi,
I have a question about using Servlet Filters in Struts.
On my /index page, I have several navigation links that use <html:link
forward="page1"> etc. and I have mapped them as global forwards in
struts-config.xml <forward name="page1" path="/pages/page1.jsp" />
I would like to keep my navigation links simple and continue to use
global forwards, but I also want to use Filters to process the request
and do other things before the page is returned.
Is this possible? I have implemented a Servlet Filter with a mapping
of
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
and the Filter is not called; the Filter is only called when I call an
action, which leads me to believe that a Global Forward does not make
a proper request to the web server.
If you have implemented a Servlet Filter on Global Forwards or a
workaround would love to hear from you.
Thanks,
Javaguy
- Next message: javaguy44: "Re: Struts...write to properties file!"
- Previous message: Andrew Thompson: "Re: AffineTransform problem"
- Next in thread: Wendy S: "Re: Struts + Servlet Filter + Global Forward problem"
- Reply: Wendy S: "Re: Struts + Servlet Filter + Global Forward problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]