else {
// extract tags
ArrayList<String> tagsArray = extractTags(tags);
// substitute some <p> for the paragraph breaks
post = post.replaceAll("\\r?\\n", "<p>");
String permalink = blogPostDAO.addPost(title, post, tagsArray, username);
// now redirect to the blog permalink
response.redirect("/post/" + permalink);