Project: Tomcat
Bug 40012 Legacy EL Support not resolving variables correctly
Reported: 2006-07-11 13:00:29 | Status: resolved fixed

Given the following page: <% pageContext.setAttribute("t", "foo"); %> ${t} <% out.print( pageContext.getExpressionEvaluator().evaluate( "${t}", String.class, pageContext.getVariableResolver(), null)); %> You will notice that the ${t} prints out fine when in the JSP but does not resolve using the scriplet and prints nothing. For a sanity check, I tested this and it worked in glassfish to ensure I wasn't doing anything odd. I'm trying to find root cause; but haven't found it yet, so I'm logging it in case anyone else has the itch to scratch.

Files changed in fix:
java/org/apache/jasper/el/VariableResolverImpl.java