Declaring it as a local
java variable on the page does not add it as an attribute in any scope.
If you want to access it in EL, you need to put it there explicitly.
And now of course to complete the example, you pull the scriptlet code out into a servlet where it belongs, and forward to the
JSP.