 <p>You code looking fine, please to confirm that you getting post data in your servlet print values to console like this <code> String post_title=request.getParameter("post-title"); String post_detail=request.getParameter("post-detail"); System.out.println(post_title); System.out.println(post_detail); </code> and check you console either you getting value or not</p>