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 JspException("Invalid maxAge: " + e.getMessage());
}
}
CookieUtils.sendCookie(name, value, maxAge,
(HttpServletResponse) pageContext.getResponse());
return EVAL_PAGE;