title: textbox value to scriptlet
body: <pre><code>    &lt;form name="myForm" method="post" onsubmit="return getComment()"&gt;
          &lt;textarea id="commentarea"&gt;&lt;/textarea&gt;
          &lt;input type="text" name="locate" value="&lt;%=rs.getString("location")%&gt;"&gt;
          &lt;input type="submit" value="View Comment"&gt;
      &lt;/form&gt;
  
  
      function getComment(){
        &lt;% String locate=request.getParameter("locate"); %&gt;
        var location = &lt;%= locate%&gt;;
        document.getElementById('commentarea').value=location;
        return false;
      }
  </code></pre>
  
  <p>Everytime i click View Comment, there's no value printed.
  I want to access locate in the scriptlet and print the value in the text area.
  I know this is not the best way to access it, but i need to access it in this way.
  Can anyone help me? </p>