title: NumberFormatException ArrayList size Javabean method in JSP with JSTL
body: <p>Im a little new to JSTL and Javabeans so I'm having a lot of trouble figuring this one out.</p>
  
  <p>I have an index.jsp, a class called CustomerScheme which extends an ArrayList, and a test.jsp which im using for output.</p>
  
  <p>index.jsp contains the following code, and has a link to test.jsp:</p>
  
  <pre><code>&lt;jsp:useBean id="scheme" scope="session" class="customer.beans.CustomerScheme"&gt;
  
      &lt;%
          // Open a stream to the init file
          InputStream stream =
                  application.getResourceAsStream("/fm.txt");
  
          // Get a reference to the scheme bean
          CustomerScheme custScheme =
                  (CustomerScheme) pageContext.findAttribute("scheme");
  
          // Load colors from stream
          try {
              custScheme.load(stream);
          } catch (IOException iox) {
              throw new JspException(iox);
          }
      %&gt;
  
  &lt;/jsp:useBean&gt;
  </code></pre>
  
  <p>test.jsp contains:</p>
  
  <pre><code>&lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
  &lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %&gt;
  ${scheme.size}
  </code></pre>
  
  <p>CustomerScheme extends ArrayList, and has the method:</p>
  
  <pre><code>public int getSize() {
      return this.size();
  }
  </code></pre>
  
  <p>CustomerScheme has more code. I'll post it if you need.</p>
  
  <p><strong>My problem is this</strong>: Whenever I run the program, I start at index.jsp, click the link to go to test.jsp, and then get the following:</p>
  
  <p><img src="https://i.stack.imgur.com/1nDXZ.png" alt="Error Message"></p>