tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freddy Villalba A." <fvilla...@pericless.com>
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.

Regards,
Freddy.

-----Mensaje original-----
De: Brij Naald [mailto:brijnaald@hotmail.com]
Enviado el: sábado, 04 de diciembre de 2004 17:20
Para: tomcat-user@jakarta.apache.org
Asunto: Filter/...


Hi,
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 !
http://entertainment.msn.be/muziek/musicclub


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message