* org.apache.struts.action.ActionForm,
* javax.servlet.http.HttpServletRequest,
* javax.servlet.http.HttpServletResponse)
*/
public ActionForward modify(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
BlogEnterOrEditForm f = (BlogEnterOrEditForm)form;
BlogManager mgr = new BlogManager(locale,session);
Blog blog = mgr.getBlog(f.getId());
if (blog == null) {
throw new InputException(getResources(req).getMessage(locale, "admin.BlogNotFound", f.getId()));
}
checkAccessRights(req, blog.getGroup());
formToBlog(f, blog);
ensureUniqueCodePerGroup(blog, req);
mgr.modifyBlog(blog);