title: Access the size of a collection in JSP/JSTL/EL
body: <p>I have a List variable called <code>services</code> in my JSP page.  I need to add some markup to the page if there's more than 1 element in the list.</p>
  
  <p>What I'd like to do is...</p>
  
  <pre><code>&lt;c:if test="${services.size() gt 1}"&gt;
    &lt;!-- markup... --&gt;
  &lt;/c:if&gt;
  </code></pre>
  
  <p>But you can't invoke methods on Java objects in EL (I think this is perhaps the 364823782 time I've regretted that fact).  You can only access <em>getters</em> on Java objects by dropping the 'get,' e.g. ${user.name} for a User class that has a getName() method.</p>
  
  <p>What's the right way to evaluate this test?</p>