Why don't you remove the bean from the session once you're done with it:
session.removeValue(beanName);
then re-instantiate it, and store it back in the session.
>From: Graham Cruickshanks <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: How do I destroy/reset a Session Java bean
>Date: Wed, 14 Jun 2000 19:55:06 +0100
>
>I've been using a java bean to hold state while building a order in a e-bis
>app, Problem is that when the user goes through this order building process
>again it has all the old values,
>
>Is there a easy what to erase/reset a java bean which is a Session object,
>Without kill any other session objects,
>
>Or manually setting all values to defaults.
>
>He's the little son of a gun
>
><jsp:useBean id="ordercreation" scope="session"
>class="com.inrs.cannede.ordercreation"/>
>
>Thanks
>
>Graham Cruickshanks
>www.inrs.co.uk
>
>===========================================================================
>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
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
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