title: Access to class attributes with jstl
body: <p>In my spring project, my view receive from controller a Map object like this:</p>
  
  <pre><code>Map&lt;String, List&lt;?&gt;&gt;
  </code></pre>
  
  <p>which I access in my jsp code this way:</p>
  
  <pre><code>                &lt;c:forEach var="field" items="${values[item]}"&gt;
                      &lt;c:out value="${field}"/&gt; &lt;br/&gt;
                  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>Considering the class indicatd by <code>?</code> it's a regular POJO class, how I can access the attributes from this class in my jsp? In other words, what the correct instruction I should use to replace:</p>
  
  <pre><code>                    &lt;c:out value="${field}"/&gt; &lt;br/&gt;
  </code></pre>
  
  <p>because with this I am getting something like that when I open the page in the browser:</p>
  
  <pre><code>com.spring.loja.model.categoria.persistence.model.Categoria@41c0e228
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I try use this, following answer posted in this topic:</p>
  
  <pre><code>&lt;c:out value="${field.name}"/&gt;
  </code></pre>
  
  <p>but I wonder if there is a way to use this method instead:</p>
  
  <pre><code>@Override
  protected String getArgument(int ordem) {
      switch(ordem) {
       case 0: return "Id";
       case 1: return "Login";
       case 2: return "Senha";
       case 3: return "Nome";
       case 4: return "Sobrenome";
       case 5: return "E-Mail";
       case 6: return "Autorizacao";
       default: return null;
       }
  }
  </code></pre>
  
  <p>and this way be able to avoid the use of the name of the getter method (It's a generic jsp page, used by several views, and I don't know which method will be used)</p>