// are we doing a preview? or a post?
String method = request.getParameter("method");
final boolean preview;
if (method != null && method.equals("preview")) {
preview = true;
messages.addMessage("commentServlet.previewCommentOnly");
log.debug("Handling comment preview post");
} else {
preview = false;
log.debug("Handling regular comment post");
}