Use following jsp script at the top of all your jsp pages.
<jsp:useBean id="exampleBean" scope="session" class="xxx.yyy.ExampleBean" />
Instantiate it only if it is null and you will be able to use it all the
pages. Here 'ExampleBean' belongs to package xxx.yyy
jk
-----Original Message-----
From: Vinay Kulkarni <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, March 17, 2000 8:48 AM
Subject: Need Urgent Help needed regarding JSP & Beans
>HI Guys,
>
>I need some urgent help.
>
>I have a 3 JSP pages. In all the three JSP pages I am instantiating the a
>bean. The bean is used to set & get a value.
>Now From the 1st page I set some value by calling a set method from the
>bean. Now when I go to the second or third page & try to get the value set
>by using the get method, I am not able to see the value. The value is lost
>due to instantiating the bean once again in the second page.
>
>Please can anyone help me asto how can I retain the value in the second
>page.
>
>
>Thanks in advance.
>
>
>Vinay
>______________________________________________________
>Get Your Private, Free Email 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
===========================================================================
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