Well you could either first remove each and every bean that you don't want
from the session, if you for some reason want to hold some beans in the
session.
Or, you could just call the invalidate() method on your session if you want
to completely get rid of the session.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com

----- Original Message -----
From: Thang Nguyen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 22, 2000 4:53 AM
Subject: How to delete a session bean?


> Hi,
>
> I have this question regarding to a session bean.   An example for this
would be a
> shopping cart, my beans are kept throughout all the pages (therefore I use
session
> beans), however, on my last page where I want to submit the order.
> I want to delete all my beans after the order have been executed
successfully.  The
> reason I want to do this is to  avoid the users submit twice or maybe
accidently
> submit the outdated information.
>
> How can I do this?   Thanks in advance.
> TN
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to