b) Explain with the help of an example/diagram or write code for the following using JSP:
a) Use of scriptlet with the help of an example on displaying a number series from 1 to 10
<!DOCTYPE html >
<html>
<head>
<title>Natural Number Addition</title>
</head>
<body>
<% out.println("The natural numbers scriptlet"); %>
<% int j;%>
<% for (j = 1; j <= 10; j++)
  {
    printf("%d ",j);  Â
  }%>
</body>
</html>
Comments
Leave a comment