Greg:
page scope technically means you lose access to your objects when you leave the page - it doesn't mean the objects are garbage-collected immediately - so any connections could still remain open. It's always best to close connections explicitly.
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.
LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
_______________________________________________
>From: Greg Dunn <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Bean Page Scope and security >Date: Tue, 20 Aug 2002 13:13:27 -0500 >MIME-Version: 1.0 >Received: from [192.18.99.108] by hotmail.com (3.2) with ESMTP id MHotMailBF2BD485003A4136E820C012636CA78E0; Tue, 20 Aug 2002 11:25:29 -0700 >Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid E1E2C226EC; Tue, 20 Aug 2002 12:22:27 -0600 (MDT) >Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2517670 for [EMAIL PROTECTED]; Tue, 20 Aug 2002 12:20:40 -0600 >Received: from rams.nisc.cc (mail.cadp.org [12.10.126.154]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 335A4480A for <[EMAIL PROTECTED]>; Tue, 20 Aug 2002 12:10:40 -0600 (MDT) >Received: from [12.10.126.135] (helo=gdunn) by rams.nisc.cc with smtp (Exim 3.16 #1) id 17hDWT-000062-00 for [EMAIL PROTECTED]; Tue, 20 Aug 2002 13:14:33 -0500 >From [EMAIL PROTECTED] Tue, 20 Aug 2002 11:25:40 -0700 >Delivered-To: [EMAIL PROTECTED] >X-Priority: 3 (Normal) >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) >Importance: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 >X-Scanner: exiscan *17hDWT-000062-00*H7SgpX7HwJ6* >Message-ID: <[EMAIL PROTECTED]> >Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> >In-Reply-To: <[EMAIL PROTECTED]> > >I'm developing an application that displays sensitive data and I need to be >sure there is no way user X can see another user's data. I have some >questions about bean scope. > >What happens to a bean with page scope when it goes out of scope? Is it >garbage collected? > >What happens if a user requests a page using a bean but shuts down before >the request can be completed? Will the next request always get a new bean? > >Is there ANY way a user can see another user's data if the data is retrieved >using a page scope bean? > >Any other suggestions would be welcome. Thanks, > >Greg > >=========================================================================== >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://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com
MSN Photos is the easiest way to share and print your photos: Click Here
=========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
