I have seen two ways to getServletContext....
1. HttpServlet.getServletContext() which inturn gets from ServletConfig.
2. HttpServlet.getServletConfig().getServletContext()
Any preference ?
Not sure why we have two methods.......
- satya
[ March 03, 2002: Message edited by: Madhav Lakkapragada ]
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81