title: pass java variable in jsp:param
body: <pre><code> &lt;%!  
      String str = "prerna";  
    %&gt;  
  
   &lt;jsp:include page="index.html"&gt;
        &lt;jsp:param name="type1" value=&lt;%=str%&gt; &gt;
        &lt;/jsp:param&gt;  
   &lt;/jsp:include&gt;
  </code></pre>
  
  <p>I want to pass a java variable in the param tag,but i am not sure how to do it.  </p>
  
  <p>I also want to access it in <code>index.html</code>.<br>
  Can anyone suggest me the way to do it ?</p>