title: How I assign the value inside a textbox into the scriptlet variable and set the value into session variable
body: <p>How I assign the value inside a textbox into the scriptlet variable and set the value into session variable.... </p>
  
  <pre><code>&lt;body&gt;
  .
  .
  .
  
  &lt;input type="text" name="txtValue" id="txtValue"&gt;
  .
  .
  .
  
  
  &lt;%
  String valueString="txtValue";
  
  request.getSession().setSession("setValue","valueString");
  
  %&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>here "txtValue" is a textbox.I want to get the value stored into the textbox and want to assign the value to scriptlet variable which is valueString.I also want to put the value inside the session attribute.</p>
  
  <p>What will be the right Syntax?????? Please help ...</p>