Declarations scope are for all instances of the page, not a single request
for the page.
Scriptlets are scope of a single request for the page.
HTH
Drew
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Steve
Sent: Friday, 29 December 2000 1:48 PM
To: [EMAIL PROTECTED]
Subject: That declaration tag <!% %>
Hi;
I've noticed then when I declare Strings inside of <!% %> that the
strings will hold onto their content until that content is replaced or
set to null.
Did I misread the docs? I got the impression that variables decalred
using <%! %> are global to the *page*......not the site or
persistant?
Anyway, if anyone is noticing old data when a page is reloaded or
strings with redundant, leftover data try declaring your variables
inside of ordinary <% %> tags.
Steve
=====
Steve
http://www.geocities.com/beforewisdom/
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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