I don't know if the chapter is the same as the Professional JSP book as my
copy if in the UK but look at the J2EE Server Programming book page 487 and
488. You'll see the variable declaration ends up as an instance variable.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rueda P
> Sent: Tuesday, February 20, 2001 5:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: difference between <%! %> and <% %>
>
>
> 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
>
===========================================================================
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