}
public ActionForward edit(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp) {
BlogInteractionEnterOrEditForm f = (BlogInteractionEnterOrEditForm)form;
BlogCommandEntry commandEntry = (BlogCommandEntry)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.setBlogId(commandEntry.getBlog() == null ? 0 : commandEntry.getBlog().getId());
f.setSortLabel(commandEntry.getSortLabel());
f.setTags(commandEntry.getTags());
f.setTitle(commandEntry.getTitle());
f.setContent(commandEntry.getContent());
f.setMaxImageWidth(commandEntry.getMaxImageWidth()==null?null:commandEntry.getMaxImageWidth().toString());
List<Blog> blogList = getBlogList(commandEntry.getGroup());
req.getSession().setAttribute("blogList", blogList);
req.getSession().setAttribute("enterOrEdit", "edit");
req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
return mapping.findForward("edit");
}