The added record will not be reflected unless the JVM is restarted. If an
object is instantiated within a jsp page, the reference to that object
exists within the page context and will have page scope. If you want a
different scope, try pageContext.setAttribute(name,object,scope) to register
the object. Check JSP API's for more info.


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh
Sent: Monday, October 30, 2000 3:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Bean Scope - application


Hi David,

Thanks for your reply. I need some more claification.

Suppose JSP displays a page with pulldown which contains database records
using  a
bean (with scope=application). Now if I add some record in my database table
will
that will reflect in that bean, if I call again the same JSP.

Also I would like to know, if I am using an object (created using new) then
what
will be the scope of that object.

Thanks in advance.

Sushil



David Koo wrote:

> when the JVM instance (ie server) is shut down and restarted
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sushil Singh
> Sent: Monday, October 30, 2000 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: Bean Scope - application
>
> Hi,
>
> Can anybody explain me what does this mean:
> <b>application</b>the bean is unloaded only when the application is
> terminated, bean instance is available to all Servlet/JSP servlet
> instances belonging to this application.
>
> I could not understand the statement "the bean is unloaded only when the
> application is terminated".  Here application terminated means what?
>
> Thanks in advance.
>
> Sushil
>
>
===========================================================================
> 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

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