protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		Connection con = (Connection) ((DBConnection) getServletContext().getAttribute("connection")).getConnection();
		User u = (User) request.getSession().getAttribute("user");
		int recipient_id = Integer.parseInt(request.getParameter("recipient_id"));
		try {
			Message.createMessage(con, u.getId(), recipient_id, Message.NOTE, request.getParameter("body"));
			request.setAttribute("notification", "Message sent.");
			RequestDispatcher dispatch = request.getRequestDispatcher("show_messages.jsp");
			dispatch.forward(request, response);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}