I have declared a variable in my JSP page as
<%! int var = 0 ;
%>
and somewhere else, I do
<% var ++ ; %>
and also
<%! var++; %>
The problem is that when each time I come to the page in the browser,
the previous values are held in the integer var. It does not get
reset to 0. What is happening here?
thanks in advance
liza
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets