Yes. Your bean is in session scope therefore it is available in other pages
that participate in the current session.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
----- Original Message -----
From: Chin Sung Kit <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2000 4:25 PM
Subject: scope of the Beans?
> hi,
>
> say if I instantiate one of my beans in my login page, can I still use
> it in other pages?
>
> for example:
> in my login.jsp, i instantiate the bean.
> <jsp:useBean id="beanConnect" class="jsp.DbBean" scope="session"/>
>
> in my index.jsp, can i use the bean straight off without declaring the
> jsp:useBean tag again?
>
> thanks for any suggestions/opinion.
>
> ced
>
>
===========================================================================
> 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