"Joseph B. Ottinger" wrote:
> Given the code <jsp:usebean
> id="myBean" class="myClass" session="scope" />,
> is there a way for the session to remove the bean, in the case that it
> preserves data across many pages but should preserve it across ALL pages?
>
In a JSP page, you can remove session beans with a scriptlet:
<%
session.removeValue("myBean");
%>
The corresponding technique in a servlet is very similar:
HttpSession session = request.getSession();
session.removeValue("myBean");
> Joseph B. Ottinger
Craig McClanahan
===========================================================================
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