As the other poster pointed out, you have to put it into the pagecontext. It would be worthwhile for you to read the JSTL specification. It clearly discusses the fact that the expression language references "scoped variables" and not scriptlet variables.