If it doesn't make a difference for you, use the <%int x;%>.
<%! creates a class variable. That means that there's only one instance of
the variable for all the concurrent requests. Unless you need this "cross
request" behaviour (like in a counter, use a local variable (<% %>) to avoid
thread safety issues.
Geert 'Darling' Van Damme
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of DaveFord
> Sent: zaterdag 18 maart 2000 17:20
> To: [EMAIL PROTECTED]
> Subject: <%! int x; %> Versus <% int x; %>
>
>
> Is there any functional difference between declaring a variable in a
> declaration tag versus inside a scriptlet tag?
>
> Dave Ford
>
> ==================================================================
> =========
> 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
>
>
===========================================================================
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