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