What I did is extend the org.apache.struts.action.ActionServlet override the init() method and then in WEB-INF/web.xml use the name of your class for the <servlet-class>...</servlet-class> entry.
Mike -----Original Message----- From: Chris Ruegger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 8:18 AM To: Tomcat Users List Subject: putting custom code in front of Struts Main Servlet This is a bit off topic but we are using Tomcat with Struts. We want to be able to always execute some code before the Struts servlet is invoked, to check for things like lost session, permission, etc. What is the best way to do this? I'm thinking either have a servlet that we send everything to, then have it call the Struts servlet, or use servlet filters somehow (have not used them yet but vaguely familiar with them) What approaches have others used for this? Thanks -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
