As I understood the spec, anything between <%! %> declaration tags is
processed at compile time not request time.
This means that declaring a field in a declaration tag will result in your
JSP having a variable with that data. This would
result in you seeing the original values when you load a page. The request
time processing may change it of course.

Hope this clears up the confusion!!

============================================================================
Date:    Thu, 28 Dec 2000 19:47:41 -0800
From:    Steve <[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

===========================================================================
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

Reply via email to