title: Using jsp:include to pass a array from one jsp page to another
body: <p>In my spring application, for each entity class, I have a set of views which share a common structure. the common structure is store in a separate jsp file placed in /WEB-INF/jsp/common. the specific jsp page are store in /WEB-INF/jsp/private/ and right now have this content:</p>
  
  <pre><code>&lt;jsp:include page="../../common/listagem.jsp"&gt;
      &lt;jsp:param name="entity" value="&lt;Entity_name&gt;"/&gt;
  &lt;/jsp:include&gt;
  </code></pre>
  
  <p>Besides the param <code>entity</code>, I need pass to the common jsp page a array with the atributes of the entity. I was using something like this:</p>
  
  <pre><code>&lt;jsp:param name="elements" value="login"/&gt;
  &lt;jsp:param name="elements" value="pnome"/&gt;
  &lt;jsp:param name="elements" value="unome"/&gt;
  &lt;jsp:param name="elements" value="email"/&gt;
  </code></pre>
  
  <p>but I wanted something like this:</p>
  
  <pre><code>&lt;jsp:param name="elements" value="login,pnome,unome,email"/&gt;
  </code></pre>
  
  <p>Also, in the super class for my entity classes, I have this method:</p>
  
  <pre><code>public List&lt;String&gt; getListaArgumentos() {
      List&lt;String&gt; lista = new ArrayList&lt;String&gt;();
  
      int counter = 0;
      String nome = this.getArgumentName(counter);
      do {
          lista.add(nome);
          nome = this.getArgumentName(++counter);
      }while(nome != null);
  
      return lista;
  }
  </code></pre>
  
  <p>which return a list of the atributes names. If I pass from my constructor this list to my view, Is there a way to use this to replace <code>"login,pnome,unome,email"</code>?</p>