K
Ken
I have a page of the form:
== Start ==
<%! int someVariable = 0; %>
<%= someVariable %>
<% someVaribale++; %>
== End ==
Now when I run the page the first time I get 0 then each subsequent
time a higher number... Why? I should think the scope of someVariable
is local and to make the scope application or session I would need to
do something special. I even clear the cache on firefox and the bloody
thing still increments.
I'm using Netbeans 6.7.1 with Glassfish v3 if it makes a difference.
== Start ==
<%! int someVariable = 0; %>
<%= someVariable %>
<% someVaribale++; %>
== End ==
Now when I run the page the first time I get 0 then each subsequent
time a higher number... Why? I should think the scope of someVariable
is local and to make the scope application or session I would need to
do something special. I even clear the cache on firefox and the bloody
thing still increments.
I'm using Netbeans 6.7.1 with Glassfish v3 if it makes a difference.