title: How to access javascript value in jsp?
body: <p>Hi i am using jquery. like,</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
  
  $(function() {
  
           $('#usertype').change(function() {
                  $.post("&lt;%=request.getContextPath()%&gt;/CommonServlet", {utype:$('#usertype').val(),funName:'getConfigMast'},  function(j){
                   $("input#it").html(j);alert(j);
  
               });
           });
   });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>in this j contians some model object i have to iterate his object in my same jsp page and those values i have to show in text fields in <code>&lt;table&gt;</code>. here the jquery function will called when i selected the the value from combobox of same <code>&lt;table&gt;</code></p>
  
  <p>and jsp table:</p>
  
  <pre><code>&lt;table &gt;    
      &lt;tr&gt;
        &lt;td&gt;&lt;input name="filetype" type="text" class="formTxtBox_1" id="filetype"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;      
        &lt;td&gt;
            &lt;select name="usertype"  id="usertype" &gt;
              &lt;option &gt;- Select Type of User -&lt;/option&gt;
              &lt;option value="admin"&gt; administrator &lt;/option&gt;
              &lt;option selected="true" &gt; normal&lt;/option&gt;
              &lt;option&gt; member&lt;/option&gt;
            &lt;/select&gt;      &lt;/td&gt;
      &lt;/tr&gt;
   &lt;tr&gt;  
     &lt;td&gt;&lt;input name="singlefile" type="text" id="singlefile"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
   &lt;tr&gt;
     &lt;td&gt;&lt;input name="totalfile" type="text"  id="totalfile"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;table&gt;
  </code></pre>