title: Is there any way to pass an arraylist in <jsp:param> n retrive it as a arraylist
body: <p>I'm passing an arraylist in <code>&lt;jsp:param&gt;</code> but its difficult to retrive it as an arraylist</p>
  
  <pre><code>&lt;jsp:include page="attach.jsp"&gt;
    &lt;jsp:param name="total" value="${sessionScope.file[fpr-i+1] }"/&gt;
  &lt;/jsp:include&gt;
  </code></pre>
  
  <p>where file is a list of list of String</p>
  
  <p>in the attach.jsp</p>
  
  <pre><code>&lt;div id="top"&gt;
   &lt;p&gt;${param.total["1"]}&lt;/p&gt;
   &lt;p&gt;${param.total["2"]}&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I also tried this</p>
  
  <pre><code>&lt;div id="top"&gt;
   &lt;p&gt;${param.total[1]}&lt;/p&gt;
   &lt;p&gt;${param.total[2]}&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>this throws an exception </p>
  
  <blockquote>
    <p>Property '1' not found on type java.lang.String</p>
  </blockquote>
  
  <p>i guess <code>&lt;jsp:param&gt;</code> is setting the param as a string </p>
  
  <p>is there any way to retrive it as an arraylist</p>