<%! declares variable at class level while <% declares variable at service
method level.  Therefore, <%! variables are shared by all clients accessing
page and need to be made thread safe ect, but <% variables will only be
access in the scope of a single request.


>From: Ashish Bhatia <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Variable declaration
>Date: Fri, 23 Jun 2000 17:44:20 +0530
>
>Hi,
>         What is the difference in declaring the variables as
>
>                 <! <Datatype> <variable> %>
>                         Vs.
>                 <% <Datatype> <variable> %>
>
>as far as concurrent users are concerned. I mean if two users are accessing
>the same JSP page and submitting the information at the same time, will the
>two have different instances of these variables, inspite of the requests
>being served by the same servlet formed after compiling the JSP page.
>Please help me in resolving this confusion.
>
>
>Thanks and Regards
>Ashish Bhatia
>NIIT LTD.
>8, Balaji Estate
>Sudarshan Munjal Marg,
>New Delhi - 110 058
>Tel: 6203447
>
>===========================================================================
>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

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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

Reply via email to