I have tried declaring counter using <%! %> .

What I found is that when this jsp, containing the counter, is accessed,
counter increment.

So, my assumption is that the variable declared withing <%! %> is
declared as static global variable.

Is this correct????

Rueda




On Tue, 20 Feb 2001 16:49:54 -0700, Da-Ming Duan
<[EMAIL PROTECTED]> wrote:

>Discussion is always welcome!  Geert, can you please explain the
>difference? I
>believe you can.
>
>DMD
>
>Geert Van Damme wrote:
>
>>NO  NO NO
>>
>>If you don't know what <%! %> exactly does. Don't use it.
>>And you apparently don't know it.
>>
>><%! %> is NOT meant to declare variables.
>>
>>Again an example of a really bad post. If you don't know it. Please, don't
>>answer, or at least specify that it's only a wild guess
>>
>>Geert Van Damme
>>
>> > -----Original Message-----
>> > From: A mailing list about Java Server Pages specification and
>>reference
>> > [mailto:[EMAIL PROTECTED]]On Behalf Of Surya Prakash
>> > Sent: maandag 19 februari 2001 9:59
>> > To: [EMAIL PROTECTED]
>> > Subject: Re: difference between variable declared using <%! %> and <%
>>%>
>> >
>> >
>> > hi kishor
>> > <%! %> it declares variables or methods valid in
>> > the page scripting language
>> > <%%> contains a codefragment valid in the page scripting
>> > language
>> > this may help u
>> > surya
>> > ----- Original Message -----
>> > From: "Kishor K" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Monday, February 19, 2001 9:34 AM
>> > Subject: difference between variable declared using <%! %> and <% %>
>> >
>> >
>> > > hi,
>> > >
>> > > can anyone tell me the difference between variable declared using <%!
>>%>
>> > and
>> > > <% %>
>> > >
>> > > thanx in advance
>> > > kishor
>> > >
>> > >
>> > > _________________________________________________________
>> > > Do You Yahoo!?
>> > > Get your free @yahoo.com address at http://mail.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
>> >
>>
>>===========================================================================
>>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

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.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

Reply via email to