Here is my request filter code: public class MyFilter implements Filter { private FilterConfig filterConfig = null; public void init(FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; }
public void destroy() { this.filterConfig = null; } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (filterConfig == null) return; // MY CODE HERE } and here is the mapping in web.xml: <filter-mapping> <filter-name>MyFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> </filter-mapping> While processing an request, if I include an action using struts action tag ("s:action"), this filter is invoked again during the same request. So, if I have 2 "s:action" tags in my JSP, the filter is being called 3 times - once for request and two times for "s:action". Any ideas on how this could be addressed? Musachy Barroso wrote: > > What REQUEST FILTER is this you are talking about? > > On Sat, Oct 10, 2009 at 10:15 PM, Pancham <pancham.si...@gmail.com> wrote: >> request filter > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Prevent-request-filter-invocation-when-struts-action-tag-is-invoked-tp25824829p26045181.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org