*/
@Override
protected ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
SimpleInteractionEnterOrEditForm simpleInteractionForm = (SimpleInteractionEnterOrEditForm)form;
SimpleCommandEntry commandEntry = (SimpleCommandEntry)commandEntryFromRequest(req);
if(commandEntry == null){
MessageResources resources = getResources(req);
throw new InputException(resources.getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"));
}
checkAccessRights(req, commandEntry.getGroup());
simpleInteractionForm.setCommandEntryId(commandEntry.getId());
simpleInteractionForm.setCommandTypeSelection(commandEntry.getSimpleCommandEntryType());
simpleInteractionForm.setSortLabel(commandEntry.getSortLabel());
req.getSession().setAttribute("enterOrEdit", "edit");
req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
return mapping.findForward("edit");
}