Hi,

The scope attribute of the jsp:useBean tag can contain 4 values: page,
request, session or application. This simply determines how long the bean
that was created will exist before being garbage collected.

page scope beans are only accessible within the page where they were
created. request scope beans are available for pages processing the same
request that the object was created in. session scope beans exist within
pages in the same session as that in which the bean was created. application
beans exist for as long as the JSP engine remains active, once restarted
they will go away.

Hope that helps.

-Pete

-----Original Message-----
From: Tosa, Alex [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 1:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Scope attribute in useBean tag


Santosh,

What JSP book are you using? In mine they don't say anything about "scope"
attribute. Also I have searched JSP documentation and they don't explain
anything about this.

-----Original Message-----
From: Salian, Santosh (GXS, TCS) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Scope attribute in useBean tag


Hi ,

In the following tag,
<jsp:useBean id="consearch" class="ebus.crm.beans.contactSearch"
scope="page" />

Can anybody tell me what's the significance/importance of "scope" attribute
?

Whats the difference between scope=page and scope=session ?

Regards,
Santosh

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

Reply via email to