response.setContentType("text/html");
PrintWriter out = response.getWriter();
String cand=request.getParameter("color_name");
if (cand != null) {
faveColor = cand;
Cookie c = new Cookie(CookieServlet.PREFS_BGCOLOR, faveColor);
c.setMaxAge(60*60*24*365);
response.addCookie(c);
}
response.sendRedirect("/servlet/CookieServlet");