I think I'm missing something basic regarding Expression Language.
practice.jsp (below) outputs 14
, as expected.
<jsp:scriptlet>
request.setAttribute("a", 5);
request.setAttribute("b", 9);
</jsp:scriptlet>
${a+b}
practice2.jsp (below) outputs 0
.
<jsp:scriptlet>
Integer a = 5;
Integer b = 9;
</jsp:scriptlet>
${a+b}
What is going on in practice2.jsp? Why can't EL seem to evaluate these variables? Is this a scope issue, or am I missing something bigger?