Hello,
I have been trying to provide JavaBeans with an access to specific JavaBean
instance stored in various scopes, i.e. application (ServletContext),
session, request:
- I create an instance of a bean and store it in some scope, e.g.
application.
- I can retrieve that bean instance in another servlet or a jsp by matching
the scope, id and class.
But the problem is I can not access that bean access from other beans. Does
the bean have to extend javax.servlet.http.HttpServlet to use the
getServletContext() etc.?
I have tried to have all the methods and instance variables as static and
put an instance of that class in the ServletContex to prevent unwanted
garbage collection. It looked OK with JDK1.2 but it looks very unstable
with jdk1.3.
Does anyone have any suggestion?
Thanks
Bulent
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
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