title: how to pass javascript variable to jsp param value
body: <p>Im just trying to pass java script variable to jsp param value dynamically below is javascript code</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
  var loginName = $.jStorage.get("loginUserName");
  console.log("usrname "+loginName);
  var QueryNumber="6047"; 
  if(loginName === "admin")
  {
      QueryNumber="5341";
      console.log("Querynumber"+QueryNumber);
      $('#creater').val("desc")
      $('#admin').val(QueryNumber)
  
  }
  else{
      $('#admin').val(QueryNumber)
       $('#creater').val(loginName);
  }
  
  $(document).ready(function () {
      $('#cmschangeavailabilityLayout').layout();
  });
  </code></pre>
  
  <p></p>
  
  <p>I want to pass QueryNumber variable to below jsp param page </p>
  
  <pre><code>  &lt;div id="cmschangeavailabilityLayout" class="cmschangeavailabilityLayout" data-options="fit:true" border="false"&gt;
  &lt;input type="hidden" id="creater" name="creater"/&gt;
  &lt;input type="hidden" id="admin" name="admin"/&gt;
  &lt;div id="cmschangeavailabilityListView" class="cmschangeavailabilityListView" region="center" collapsible="false" border="false"&gt;
      &lt;jsp:include page="../tablefw.jsp"&gt;
  
          &lt;jsp:param value="${serverURL}/TableMgr" name="URL"/&gt;
          &lt;jsp:param value="Parm1=-1&amp;QueryNum=????&amp;key=CMSCHANGEAVAILABILITY" name="parameters"/&gt;
          &lt;jsp:param value="${serverURL}/addCmschangeavailability" name="addURL"/&gt;
          &lt;jsp:param value="requestType=cmschangeavailabilityView&amp;subRequestType=addCmschangeavailability" name="addParameters"/&gt;
          &lt;jsp:param value="${serverURL}/editCmschangeavailability" name="editURL"/&gt;
            &lt;/jsp:include&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want to pass java script variable QnueryNumber in this line for QueryNum like </p>
  
  <pre><code>  &lt;jsp:param value="Parm1=-1&amp;QueryNum=QueryNumber&amp;key=CMSCHANGEAVAILABILITY" name="parameters"/&gt;
  </code></pre>
  
  <p>How can I pass it. Thanks!</p>