JSTL Simple Calculation : Calculation « JSTL « Java






JSTL Simple Calculation

<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
  <head>
    <title>JSP is Easy</title>
  </head>
  <body bgcolor="white">

    <h1>JSP is as easy as ...</h1>

    <%-- Calculate the sum of 1 + 2 + 3 dynamically --%>
    1 + 2 + 3 = <c:out value="${1 + 2 + 3}" />

  </body>
</html>


           
       








JSTL-Simple-Calculation.zip( 852 k)

Related examples in the same category

1.Simple calculation and output