Count to 10 Example using JSP Scriptlet : Scriptlet « JSP « Java Tutorial






<html>
  <head>
    <title>Count to 10 Example(using JSP Scriptlet)</title>
  </head>

  <body>
    <%
    for(int i=1;i<=10;i++)
    {
    %><%=i%>
    <br />

    <%
    }
    %>
  </body>
</html>








23.29.Scriptlet
23.29.1.Scriptlet Example
23.29.2.Call function in jsp page
23.29.3.Count to 10 Example using JSP Scriptlet
23.29.4.All Scripting Elements
23.29.5.This scriptlet checks a hidden field to see whether or not to throw an exception