From a bean that I only pass HttpServletRequest into, how can I obtain a reference to it's corresponding ServletContext? I want the bean to be able to get at the ServletContext.getInitialParameter() method.
I posted a similar question a while back. The getServletContext() method on HttpSession is new in Servlet 2.3. Apparently under 2.2 there's no way to get the context given just a request, and we must resort to passing it around with the request, or adding it to the request as an attribute before passing the request around. Ick. hth, bear