Hi friends,
According to
JSP specs, variables are declared with the following syntax:
<%! name=value %>
How come the code below which i by chance modified from wrox book works perfectly on
java web server. It should give compilation erorr:
<html>
<body>
<% int i = 1; %>
<% for (int x=0; x<5; x++) { out.println("value of i is: is :"+ i); } %>
</body>
</html>
Please tell me the reason. It would be a great help.
thanks a lot in advance
sudeepa