Hi vasu, Your Serveletcontext represent ur webapp while ur servletConfig is associated with a particular servlet , its provides the initial config parameters that are necessary for ur servlet to work properly and we have kept those in xml as per the intention to make ur servlet work like a component..i mean we can tune our servlet to wrok under different settings without touching the code.
And your servlet container is the invironment within which ur servlet runs just like ur applet in browser or any standalone java in jvm. The container provides all the unfrastucture and services... Thanks and Regards Pradyumna Jena Success is not final, failure is not fatal: it is the courage to continue that counts. Winston Churchill -----Original Message----- From: vasumathi [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 4:59 PM To: struts userList Subject: ServletConfig, ServletContext and ServletContainer Hi I have a confusion with Difference between ServletContext, ServletContainer and ServletConfig? Also the destroy() method is called by the ServletContainer after the threads in service() method exited or the time period expired. My question is, how the ServletContainer come to know threads in service() exited? how ServletContainer come to know to call destroy(). Anyone can help me... With Regards vasu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]