public ActionForward edit(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp) {
CommentInteractionEnterOrEditForm f = (CommentInteractionEnterOrEditForm)form;
CommentCommandEntry commandEntry = (CommentCommandEntry)commandEntryFromRequest(req);
if(commandEntry == null){
MessageResources resources = getResources(req);
throw new InputException(resources.getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"));
}
checkAccessRights(req, commandEntry.getGroup());
f.setCommandEntryId(commandEntry.getId());
f.setComment(commandEntry.getDescription()==null?"":commandEntry.getDescription());
f.setSortLabel(commandEntry.getSortLabel());
req.getSession().setAttribute("enterOrEdit", "edit");
req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
return mapping.findForward("edit");
}