posted 19 years ago
<HTML><BODY>
Hello 1 <B>
<%!
int i=10;
public void a()
{
i = i+10;
out.println("inside ");
}
%> </B>
Hello 1
<B><%
a();
out.print("first line "+i+6);
%></B>
</BODY></HTML>
---
above script is giving HTTP status 500 error at first out.println, why?
is it means in between <%! and %> can't we use implicit objects?.
In between declaration tags it is allowing to declare methods and call them self. But why it is not allowing to print.