Hi,

I have a requirement where I have to store the data in a persistent java
class and then whenever user requires it he can use it. So per session I
want to create only one instance of the class which will be used in
different JSPs.

I want to use Singleton pattern to maintain only one instance per
session. So in any JSP if user wants to create another instance of the
class, the same instance should be returned to the user.

My doubt is, whether the scope of the class object instantiated in a JSP
will be limited to that page only or class object can be accessed if
exists, in subsequent pages also.

Please clarify.
Thanks in advance

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