Hi,
i would like to dynamicly access the servlet context from non servlet class, i mean from common java class, that is executed within web container.
Sample scenario:
1. jsp calls java class MyTools.java
2. MyTools.java want to access servlet context dynamicly.
I know one solution, that jsp page sends reference to servlet context when calling java class. But IS THERE ANY OTHER WAY HOW TO ACCESS the Servlet Context? E.g. by using InitailContext to retrieve ServletContext?
Thanx for any hint and advise.
–Eugen