Creates a cookie and adds it to the response
int maxAge = -1;
if (maxAgeString != null) {
try {
maxAge = Integer.valueOf(maxAgeString).intValue();
}
catch (NumberFormatException e) {
throw new JspTagException("Invalid maxAge", e);
}
}
CookieUtils.sendCookie(name, value, maxAge,
(HttpServletResponse) pageContext.getResponse());
return EVAL_PAGE;