users@glassfish.java.net

Re: Set a Cookie with JSP

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 Jan 2008 15:23:11 PST

The following simple JSP page does what I think you are trying to do:

<%
    Cookie cookie = new Cookie("YOURCOOKIENAME", "YOURCOOKIEVALUE");
    response.addCookie(cookie);
 %>
[Message sent by forum member 'jluehe' (jluehe)]

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