Actually, I believe that the usebean tag's scope parameter specifies the
lifetime of a bean. The first time you access a bean you will create it, but
with page, it lives as long as the page, with request, it lives as long as
the request, with session it lives as long as the session, with application
it lives as long as the server.

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of anand
> Sent: Thursday, March 30, 2000 4:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Architectural question
>
>
> Marco,
>
> The bean is not created everytime. The Server looks for an already
> existing instance of the same bean. If found it reuses the same
> instance, if not found, it will create a new instance of the bean.
>
> Cheers,
> Anand
>
>
>
> Mistroni Marco wrote:
> >
> > HI all,
> >         i have a doubt:
> > i have a bean associated with a JSP..
> > is it so that every time that i call the JSP the data in the Bean is
> > recreated?? i mean, does it create a new instance of the bean every time
> > that i call the JSP page??
> > thanx in advance
> > regards
> >         marco
> >
> >
> ==================================================================
> =========
> > 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
>

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