Question #259126

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



Expert's answer

<!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>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS