Originally posted by Jeanne Boyarsky:
A filter is definitely the way to go. It sounds like there are some pages that forward directly to JSPs, rather than the Struts action. If that is the case, you need to refactor the design a bit. You can still have the forward to a JSP by adding a level of indirection. Forward to an action path in the Struts config file. It doesn't have to be a full fledged action. Just having it in the struts config file will be enough to go through the ActionServlet. Then your filter will get called.