users@glassfish.java.net

Re: Set a Cookie with JSP

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 Jan 2008 10:18:19 PST

I think this is exactly what I had suggested:

<%
Cookie cookie = new Cookie("YOURCOOKIENAME", "YOURCOOKIEVALUE");
response.addCookie(cookie);
%>

except that I was showing how to do this in JSP syntax, whereas you have been using XML syntax. :)
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=254739