public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
Subject subject = RequestUtils.getSubject(request);
AlertManagerLocal alertManager = LookupUtil.getAlertManager();
Map params = new HashMap(3);
// pass-through the alertId and resource id
Integer alertId = new Integer(request.getParameter("a"));
request.setAttribute("a", alertId);
params.put("a", alertId);
Integer resourceId = new Integer(request.getParameter("id"));
request.setAttribute("id", resourceId);
params.put("id", resourceId);
String mode = request.getParameter("mode");
request.setAttribute("mode", mode);
params.put("mode", mode);
alertManager.acknowledgeAlerts(subject, new int[] { alertId });
log.debug("Acknowledged Alert with id " + alertId + " and user " + subject.getName());
return returnSuccess(request, mapping, params);
}