title: Call jstl variables to javascript function
body: <p>File name : Test.jsp</p>
  
  <p>I declared a variable under jstl tag</p>
  
  <pre><code>&lt;%
  
  String daysToActivate = Someclass.method();
  
  %&gt;
  </code></pre>
  
  <p>I want to call this method in the following javascript fumction</p>
  
  <pre><code>//javascript function
  function getDays(){
  
  
  
  var x= daysToActivate;
  
  alert(x);
  
  }
  
  // this alert message is not displaying.
  </code></pre>
  
  <p>please help</p>