long id = Long.parseLong(idParam);
detailForm.setId(id);
SendTaskManager sendTaskMgm = new SendTaskManager(locale, session);
SendTask sendTask = sendTaskMgm.getSendTask(id);
if (sendTask == null || !accessAllowed(user, sendTask)) {
throw new InputException(getResources(req).getMessage(locale, "smssvc.sendTaskNotAvailable"));
}
SendTaskReceiver[] receivers = sendTaskMgm.getReceivers(sendTask, detailForm.getShowFailed(), detailForm.getShowPending(), detailForm.getShowRelayed(), detailForm.getShowSending());
req.setAttribute("task", sendTask);
req.setAttribute("task_content", sendTask.getContent().replace("\n", "<br />"));
req.setAttribute("receivers", receivers);
return mapping.findForward("list");
}