I was inadvertently using a browser with  cookies disabled
I observed the follwing.....


Scope            Cookies Enabled         Cookies Disabled

page                    No                                No
request                No                                No
session                Yes                               No
application          Yes                               Yes

'Yes'  means that same instance of bean is retained.
'No' means for every refresh a new bean instance is created.

any comments are welcome!

-Nitin




----- Original Message -----
From: "Stefan Bushev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 28, 2000 8:24 PM
Subject: Re: Multiple instances of the same Bean id ?


> scope=request creates one instance on every request...
>
> <jsp:useBean id="x" scope="session" class="projsp.Simple" />
>
> <html>
> <body>
> Count is = <%= String.valueOF(x.getCount()) %>
> </body>
> </html>
>
>
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.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
>

===========================================================================
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