This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
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.