Good advice libaax.
Essentially what happened is that the declarations appear before the methods are actually available. In your JSP page it may be better to do the following:
<%! //declerations
int x = 0;....
%>
<% //initialisations <-- different from declarations since they don't appear...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.