You can get ServletContext from the ServletConfig provided when a servlet is initialized. Inside a servlet class use this: getServletConfig().getServletContext() ; If you get a null, then you didn't handle the init method properly. Bill
Hai Williams! Thanks for your reply. But what i want is to get ServletContext Object from Session Object in some other application. Anyway i got an alternative by passing ServletContext as Constructor Parameter to that application. Regards Manohar
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, the permaculture playing cards