postheadericon example of jsp scripting elements

index.jsp

<html>
<head>
<title>EX-36</title>
</head>
<body>
<!-- Declaration -->
<%!
int i=0;
int n=10;
int ans=0;
%>



<!-- Scriptlet -->
<%
for(i=0;i<n;i++)
{
ans=ans+i;
}
%>
<!-- Expression -->
Ans : <%=ans%>
<body>
</html>

0 comments:

Follow by Email

Blog Archive

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.