title: how to assign javascript variables to jsp or jstl
body: <p>Can anybody tell me how to assign javascript variables to jsp request or to jsp session.</p>
  
  <p>I am doing something like this</p>
  
  <p>Here <code>deletedRows</code> is a hidden field.</p>
  
  <pre><code>var del=45;
  document.getElementById("deletedRows").value=del
  alert(document.getElementById("deletedRows").value);
  &lt;%String del_values = request.getParameter("deletedRows");%&gt;
  &lt;%request.getSession().setAttribute("del_rows", del_values);%&gt;
  </code></pre>
  
  <p>I don't get the value of <code>del</code> in my servlet.</p>