BlogService service = new BlogService();
try {
service.putBlogEntry(blogEntry);
blog.info("Blog entry <a href=\"" + blogEntry.getLocalPermalink() + "\">" + blogEntry.getTitle() + "</a> saved.");
getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
return new RedirectView(blogEntry.getLocalPermalink());
} catch (BlogServiceException be) {
log.error(be.getMessage(), be);
context.addError(be.getMessage());
be.printStackTrace();
return new BlogEntryFormView();