62636465666768
Blog blog = (Blog)getModel().get(Constants.BLOG_KEY); List<Message> messages = blog.getMessages(); Collections.reverse(messages); getModel().put("messages", messages); return new MessagesView(); }
60616263646566
public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException { Blog blog = (Blog)getModel().get(Constants.BLOG_KEY); blog.clearMessages(); getModel().put("messages", blog.getMessages()); return new MessagesView(); }