You don't have a ServletContext, though--a Tag File uses a JspContext instead of a ServletContext.
Frits Walraven wrote:Tag files are suppose to be scriptlet free!
Just because you can, doesn't mean that you should. If you are using tag files, that means JSP 2.0. And scriptlets have no business anywhere in a JSP 2.0 application.