There are some other ways - for example, putting
the ServletContext in the Application Context
or ( less desirably ), the session.
The bean could then lookup the Servlet context
in the Application ( or session ) context.
Another way is passing in the ServletContext
in the Bean Constructor ( a parameter, but done
only once ).
Food for thought,
Dave Brafford
---------------------------------
Considering the Certified
Java Programmer Exam?
Get JCertify!
Baldwin, Eckel, Green, and more
http://www.enterprisedeveloper.com/jcertify The best investment in your career you will make all year