added doPost to Messages.java