Hi all, I've written a servlet which adds an object to a new attribute in the ServletContext. What are the conditions to be able to access that ServletContext from a different servlet? Cheers! Gareth
Abdul Narayan D'souza TP
posted 12 years ago
Yo Gareth, There is one context per "web application" per Java Virtual Machine.Therefore whenever u call ServletConfig.getServletContext() from any servlet in an application(context) u get the same object.