Java/JSTL/Calculation
JSTL Simple Calculation
<source lang="java">
<%@ page contentType="text/html" %> <%@ taglib prefix="c" uri="http://java.sun.ru/jstl/core" %> <html>
<head> <title>JSP is Easy</title> </head> <body bgcolor="white">
JSP is as easy as ...
<%-- Calculate the sum of 1 + 2 + 3 dynamically --%> 1 + 2 + 3 = <c:out value="${1 + 2 + 3}" /> </body>
</html>
</source>