Hi first of in your update.jsp you have mention request.getParameter('id')
but in ContenteditableTest.jsp in ajax call you have mention data : "text=" + text
, so either change "text="
to "id="
in ContenteditableTest.jsp or request.getParameter('id')
to request.getParameter('text')
in update.jsp.
And for contenteditable attribute you can follow this Post https://plus.google.com/114254873085584811912/posts/LqpzvvzoMYc