"Gopal, Shankar" wrote:

> does it means, the bean gets  instantiated in every page.???
>

no.
The bean, presumed it is a session bean, gets instantiated in the first page the
bean is used. The instance is then available in all the other pages which are
contacted within the session.

Greetings
Jochen



>
> > -----Original Message-----
> > From: Jochen Jorg [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, February 14, 2000 2:22 AM
> > To:   Gopal, Shankar; [EMAIL PROTECTED]
> > Subject:      Re: handle bean across the page
> >
> > Hallo Shan,
> >
> > You have to declare the bean you are using in EVERY jsp page.  The
> > scope=session
> > setting in one jsp page is not sufficient when you want to use the bean in
> > more
> > than one jsp's.
> > In every jsp you have to declare the corresponding bean as a session bean.
> > The
> > enables that settings of the bean i.e. values of member variables are kept
> > across
> > the jsp's.
> >
> > Hope this helps !
> >
> > Greetings
> > Jochen Jorg
> >
> > "Gopal, Shankar" wrote:
> >
> > > hi..
> > >
> > > I declared a bean in one page  ".jsp"  using a
> > > <jsp:useBean id="mybean" scope="session"
> > class="costTocarry.bsheetCategory"
> > > />
> > > but when I tried to access it on another page ".jsp"   it doesnt exist
> > in
> > > the next page.
> > > Throws me error " no such bean  mybean  exists ".  The scope parameter
> > is
> > > set
> > > properly. what else should I do.???
> > >
> > > Rgds
> > > shan
> > >
> > >
> > ==========================================================================
> > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > FAQs on JSP can be found at:
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to