You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Remijan <Mi...@solocup.com> on 2002/07/31 15:16:51 UTC

RE: putting custom code in front of Struts Main Servlet

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:cruegger@speakeasy.net]
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>