With this request
$('#add_author').submit(function(){ $.ajax({ type: "POST", url: "/addauthor", data: $("#author_name").val(), success: function(html){ $("#content").html(html); } }); return false; }); I appeal to such a servlet
public class AddAuthorServlet extends HttpServlet { public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); String authorName = request.toString(); //String authorName = request.getParameter("genre-name"); SocketConnection.output.println("add_genre " + authorName); //String string = SocketConnection.input.readLine(); RequestDispatcher rs = request.getRequestDispatcher("workshop.html"); rs.forward(request, response); } } Trying to pass the value of author_name , the servlet does not receive anything. How correctly to transfer by means of ajax inquiry this servlet 'value and at correctly to receive it?