protected ActionForward edit(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp) {
IterateInteractionEnterOrEditForm iterateForm = (IterateInteractionEnterOrEditForm)form;
MessageResources resources = getResources(req);
IterateCommandEntry commandEntry = (IterateCommandEntry)commandEntryFromRequest(req);
if(commandEntry == null){
throw new InputException(resources.getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"));
}
checkAccessRights(req, commandEntry.getGroup());
iterateForm.initialize(commandEntry, locale, session, getResources(req));
UserSetManager userSetManager = new UserSetManager(locale,session);
req.getSession().setAttribute("userSets", userSetManager.getUserSets(commandEntry.getGroup()));
req.getSession().setAttribute("enterOrEdit", "edit");
req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
return mapping.findForward("edit");
}