title: how to assign javascript variable value to jsp tag attribute?
body: <p><strong>I have a drop down value list, and user will select a value from this dropdown list.</strong></p>
  
  <pre><code>&lt;strong&gt;SelectPageCount: &lt;/strong&gt;
      &lt;select id="pageCount" onChange = "setPageSizeValue();"&gt;
          &lt;option value="50"&gt;50&lt;/option&gt;
          &lt;option value="100"&gt;100&lt;/option&gt;
          &lt;option value="150"&gt;150&lt;/option&gt;
          &lt;option value="200"&gt;200&lt;/option&gt;
          &lt;option value="250"&gt;250&lt;/option&gt;
          &lt;option value="500"&gt;500&lt;/option&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p><strong>I have got the value of the dropdown list in this javascript function.</strong></p>
  
  <pre><code>function setPageSizeValue()
      {
          var dropDownDocument = document.getElementById("pageCount");
  
          var displayElementDocument = document.getElementById("displayTable");
  
          var pagesize =  dropDownDocument.options[dropDownDocument.selectedIndex].value;
  
          displayElementDocument.setAttribute('pagesize', dropDownDocument.options[dropDownDocument.selectedIndex].value);
  
  
          alert(pagesize);
  
      }*
  </code></pre>
  
  <p><strong>alter is coming properly displaying the value which we set in the dropdown list.</strong></p>
  
  <p><strong>This is our Jsp</strong></p>
  
  <p><strong>In this jsp in pagesize attribute i want to assign the value of pagesize varialbe made in javascript.</strong></p>
  
  <pre><code>&lt;display:table id="displayTable" name="ewCandidateList" sort="list" pagesize="&lt;%=size %&gt;" requestURI="CandidateSearchResult"   
   decorator="com.thomsonreuters.legal.lem.lpa.ui.decorator.EWCandidateSearchResultDecorator"/&gt;
  </code></pre>