I actually meant ServletContext init parameters (found that out after pressing the send button) ... :p
So you mean I should also implement ServletContextListener in my (session event) listener so I can get the ServletContext (thus the init parameters) when context initialized, right? Hmm, actually I think that's pretty good way to get init parameters for other event listener(s) ...
Thanks again,
Dennis
On 5/7/2004 5:55 AM, Shapira, Yoav wrote:
Hi, Use ServletContext init parameters (as opposed to attributes). Those are bound for your contextInitialized event and anything after it.
Yoav Shapira Millennium Research Informatics
do-----Original Message----- From: Dennis Dai [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 4:13 AM To: Tomcat Users List Subject: Passing init parameters to event listener
Hi all,
I'd like to pass init parameters to event listener (in my case, it's session listener) instead of hard coding those parameters. But event listenersnot support init parameters like filters do.
I know that I can get SetvletContext from events (thus getting the ServletContext attributes for the context), but that'll be at time when event happens, not listener init time.
Any better way?
Thanks,
Dennis
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
