Try the 'removeAttribute(String)' method.  The documentation where it says
that the removeValue() method is replaced by setAttribute() is wrong - it's
in the errata for the servlet specification somewhere.

-----Original Message-----
From: Diego Rodrigo [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 29, 2000 12:59 PM
To: [EMAIL PROTECTED]
Subject: removing attribute from session


Hi,
    How can i remove an attribute bound to the session object ?
    According to the documentation, removeValue() is deprecated, and is
said to be replaced by setAttribute, but setAttribute does not accept a
null value.
        How should i remove an object with setAttribute() ?
        Any idea?

thanks.

diego.

--
Diego Rodrigo
+54(11)4346-6658
Vates S.A.
Argentina

===========================================================================
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

Reply via email to