I want to return the contents of whatever is typed into the summernote rich text editor back to a servlet so I then can save it into a database but I cannot figure how to do it.
My jsp page script:
<script>
  $(document).ready(function() 
  {
      $('#summernote').summernote();
  });
</script>
<script type="text/javascript">
  var markupStr = $('#summernote').summernote('code'); //this gets the contents from the text editor.
  function myFunction()
  {
      return markupStr = $('#summernote').summernote('code');
  }
</script>
Button in jsp to submit to servlet:
new content: hereServlet:
String test = request.getParameter("summerNoteText");
 
     
     
    