<p>I'm working on a JSP where I need to call methods on object that come from a Bean. The previous version of the page does not use JSTL and it works properly. My new version has a set up like this:</p>

<pre><code>&lt;jsp:useBean id="pageBean" scope="request" type="com.epicentric.page.website.PageBean" /&gt;
&lt;c:set var="pageDividers" value="&lt;%= pageBean.getPageDividers() %&gt;" /&gt;
&lt;c:set var="numColumns" value="${pageDividers.size()}" /&gt;
</code></pre>

<p>The variable <code>pageDividers</code> is a <code>List</code> object.</p>

<p>I'm encountering this issue: when I ask for <code>pageDivider</code>'s size, an exception is thrown. I know this is a simple JTSL error -- what am I doing wrong?</p>

<p>The error message is:</p>

<blockquote>
  <p>The function size must be used with a prefix when a default namespace is not specified</p>
</blockquote>

<p>How do I correctly access or call the methods of my <code>pageDividers</code> object?</p>

To access the property of a bean using EL you simply name the property (not invoke the method). So lets say you have a method called getSize() in the bean then
```
```
${pageDividers.size}
```
```
Notice no ().
EDIT:Sorry...made an error in the original post.