Re: Getting ServletContext attributes from a Filter

2002-09-24 Thread Chris Pratt
FilterConfig.getServletContext() (*Chris*) - Original Message - From: "Marc-andre Thibodeau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 9:28 AM Subject: [SERVLET-INTEREST] Getting ServletContext attributes from a Filter &g

Re: Getting ServletContext attributes from a Filter

2002-09-24 Thread Dror Matalon
How about: public void init(FilterConfig config) throws ServletException { this.filterConfig = config; } public void doFilter(ServletRequest req, ServletResponse r, FilterChain chain) throws IOException, ServletException { ... filte

Getting ServletContext attributes from a Filter

2002-09-24 Thread Marc-andre Thibodeau
Hi, Is there a way to get a reference to the ServletContext from the doFilter() method of a Filter in order to get an attribute in it? (just like servlet.getServletContext.getAttribute("attributeName"); in a servlet...) I already searched the archive but found nothing on this subject. MA