@Override protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

 if ("1".equals(req.getParameter("message_id"))) {
   resp.getWriter().println( "John Doe,Greetings,10 10-2005, Hi.I am doing good" ) ;
 } else if ("2".equals(req.getParameter("message_id"))) {
   resp.getWriter().println( "Joanna Doe,Hi,10-10-2005,Document is complete." );
 } else if ("3".equals(req.getParameter("message_id"))) {
   resp.getWriter().println("Joanna Doe,Hi,10-10-2005,Meeting is at 3.");
   ...
 } else {
   resp.getWriter().println( ",NA ,NA ,NA ,Nothing to display" );
 } //end else

} //end service