Gert is wrong in that you can declare variables with <%! but what he is
trying to say is that it's only safe to declare methods and not variables
this way. If you declare variables they will be declared as instance
variables and anybody who knows servlets will know that instance variables
are bad WRT to race conditions and threading.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jann VanOver
> Sent: Tuesday, February 20, 2001 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: <%! %> and <% %> ??? Which is it? Im confused
>
>
> I'm not sure what Geert was referring to saying that <%! wasn't to declare
> variables. Here's what my book says:
>
> "A declaration allows you to make page-wide definitions within a JSP page.
> A declaration is typically used to define variables or methods
> used in your
> JSP page. Declarations do not write any output back to the client. The
> syntax for a declaration is as follows: <%! declaration(s) %>"
>
> -----Original Message-----
> From: Michael Joyner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 8:41 AM
> To: [EMAIL PROTECTED]
> Subject: <%! %> and <% %> ??? Which is it? Im confused
>
>
> Ive been monitoring this singleton thingy, now Im upside down, Im a newbie
> coming from ASP- and learning the tags................
>
> Is someone valiant enough to clarify, what tag is what?
>
>
> ----- Original Message -----
> From: "Da-Ming Duan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 20, 2001 11:49 PM
> Subject: Re: difference between variable declared using <%! %> and <% %>
>
>
> > 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
> >
>
> ==================================================================
> =========
> 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