<body>
<%
int x = 1;
int y = 2;
request.setAttribute("x", x);
request.setAttribute("y", y);
%>
<c:set value="${x + y}" var="result" />
${result}
<c:set value="0" var="sum" />
<c:forEach begin="1" end="10" var="item">
<c:set value="${sum + item}" var="sum" />
</c:forEach>
${sum}
</body>