Hola,
You got it...

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Dennis Dai [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 11, 2004 1:20 PM
>To: Tomcat Users List
>Subject: Re: Passing init parameters to event listener
>
>Thanks a lot Yoav.
>
>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
>>
>>
>>>-----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
listeners
>> do
>>>not
>>>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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to