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 J�rg

"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