hi,
   if you declare the variable inside    <% ......%>
then it will be declared inside the service method. that is it is declared
as the method variable.

if you declare <%!.. %> then it is declared outside the service method.
it is class variable.

with regards
sukumar

----- Original Message -----
From: SANDEEP UPPAL <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 1:55 PM
Subject: difference between <%!...%> and <%....%>


> both <%!...%> and <%.....%> can be used for declaring variables.
>
> What is the difference between both and which to use ?
>
> regards,
>
> Sandeep Uppal
>
>
===========================================================================
> 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

Reply via email to