On Sun, Mar 29, 2009 at 5:52 PM, Caldarale, Charles R
<chuck.caldar...@unisys.com> wrote:

>> 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.

Absolutely correct -- serves me right for grabbing something out of a
bucket full of ancient experiments.

I should cut down on the context switching between ruby/rails/rspec
and java/servlets -- getting a slight case of whiplash  :-)

Thanks for setting that straight!

-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to