> From: Hassan Schroeder [mailto:[email protected]] > Subject: Re: Forwarding from one Context to another > > ServletContext appContext = > this.getServletConfig().getServletContext().getContext( "/dev" );
You certainly don't need "this" in the above; nor is getServletConfig() necessary, if the code is in a class that extends HttpServlet. Doing so just adds unnecessary overhead. It gets more complicated if the code is in a filter; in this case the init() method of the filter must hang onto the FilterConfig object passed into it, and use that object to retrieve the current ServletContext. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
