i am new to JSP.
I dont know what's wrong with the code.
First time when we load the page it says:
"This page has been Visited 1 times"
next time also it says the same.
from third time onwards it work.
What is that?
<HTML>
<%! int i =0; %>
<%
i=i+1;
out.println("This page has been Visited "+i+" times");
%>
</HTML>
I dont know what's wrong with the code.
First time when we load the page it says:
"This page has been Visited 1 times"
next time also it says the same.
from third time onwards it work.
What is that?
<HTML>
<%! int i =0; %>
<%
i=i+1;
out.println("This page has been Visited "+i+" times");
%>
</HTML>