Howard,
Bean is not persistant and its scope depends on the include directive, but
the session is persistant and has only one scope ie untill the life of the
session.
Thanks
Howard Lee <[EMAIL PROTECTED]> on 04/24/2000 01:32:15 AM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Gulam J Irfani/DSCMO/HQ/BOC)
Subject: Re: Diff. between HttpSession and <jsp:useBean>
Hi Anurag,
Yes I know, but what is the difference between that and using <jsp:useBean>?
Seems like I can create a bean that can do exactly the same thing.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Panda Anurag
Sent: Sunday, April 23, 2000 10:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [JSP-INTEREST] Diff. between HttpSession and <jsp:useBean>
Hi Howard,
Every JSP page has an implicit instance of HttpSession, called 'session'.
You can use it for session management.
Regards, Anurag
Howard Lee <[EMAIL PROTECTED]> on 04/24/2000 11:01:14 AM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Anurag Panda/India/IBM)
Subject: Diff. between HttpSession and <jsp:useBean>
Hi,
I'm new to JSP, and have a question about how I should go about doing a
session management. I'm used to creating a HttpSession object and do
putValue and getValue on it, and I've seen a JSP example that uses a java
bean to store and retrieve values. It seems to me that if I use
<jsp:useBean
scope="session"> to a bean, this is pretty much what an HttpSession object
is. Am I right about this or I'm mistaken? Thanks.
howard
===========================================================================
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
===========================================================================
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