tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freddy Villalba A." <>
Subject RE: Filter/...
Date Sat, 04 Dec 2004 16:49:35 GMT
Hi Brij,

I am not sure I have fully understood your question. In any case, I believe
that for accomplishing what you've stated you have 2 options:

- Use a listener class (it's like a filter, but it's automatically invoked
by the servlet container on the ocurrence of different kinds of events,
being one of those the initiailization of the servlet context.

- Use the init() method on the servlet class. This method is executed prior
to any request being delivered to that servlet through the service method.

Agains, not sure if this solves your specific problem.


-----Mensaje original-----
De: Brij Naald []
Enviado el: sábado, 04 de diciembre de 2004 17:20
Asunto: Filter/...

I need to run a class everytime before a servlet is started.

One option is to make a filter, the problem here is that a filter doesn't
get called when a servlet is invoked via the requestDispatcher.

Is there another solution for this problem?

MSN Music: download je muziek legaal !

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message