title: jsp getting filenames from directory
body: <p>I'm sure this is simple but I'm usually in PHP and having some difficulty getting used to JSP. I just need the filenames but I get the error listed below</p>
  
  <pre><code> File jsp = new File("/home/www/contents/testing/images/thing");
  
   String f = "";
  
   File[] list = jsp.listFiles();
  
   for(int i=0;i&lt;list.length;i++)
   {
  
      f = list[i].split("/");
  
      out.println(f[6]);
  
   }
  </code></pre>
  
  <p>tomcat error:</p>
  
  <pre><code>The method split(String) is undefined for the type File
  </code></pre>