title: How can I assign struts 2 value to java script global variable?
body: <p>I have following struts2 variable </p>
  
  <pre><code>&lt;s:set id="var" var="i" value="%{#i+1}"/&gt;
  </code></pre>
  
  <p>How I can assign this value to global variable paramCount ?</p>
  
  <p>I have tried following</p>
  
  <pre><code>var paramCount = '&lt;s:property value="i"/&gt;';
  </code></pre>
  
  <p>but it doesn't work</p>