hi
im trying to delete a cookie using this :
<%
String name1 = request.getParameter("cookieno");
Cookie delCookie = new Cookie(name1,null);
delCookie.setMaxAge(0);
response.addCookie(delCookie);
%
where name1 is the name of the cookie, this piece of code runs fine on
javawebserver, but when i use this on a tomcat server, i get a
nullpointerexception when i try to retrieve the cookies after i have
executed the above code, any help?...or suggestions on where im going wrong
Thanx in advance
Varun
===========================================================================
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