title: print java bean list in jsp
body: <p>I have one method, this method returnes a list of items, inside java bean it works now I want to print the output of the method inside jsp, but I searched a lot couldn't find something useful, if someone can help me I really appreciated
  this is my method for print a list</p>
  
  <pre><code>public static List printDirect() {
      List returned_list = new ArrayList ();
  
      //StringBuilder text=new  StringBuilder();
      manager = OntologyManagement.ontology.getOWLOntologyManager();
      factory = manager.getOWLDataFactory();
  
      reasonerFactory = new StructuralReasonerFactory();
      progressMonitor = new ConsoleProgressMonitor();
      config = new SimpleConfiguration(progressMonitor);
      reasoner = reasonerFactory.createReasoner(ontology, config);
      // Ask the reasoner to do all the necessary work now
      reasoner.precomputeInferences();
      OWLClass thing = factory.getOWLThing();
      NodeSet&lt;OWLClass&gt; subClses = reasoner.getSubClasses(thing, true);
      Set&lt;OWLClass&gt; clses = subClses.getFlattened();
      System.out.println("Subclasses of owl:thing =  ");
      for (OWLClass cls : clses) {
          String row = cls.toString();
          String[] split = row.split("#");
          String word = split[1].substring(0, (split[1].length() -1));
          returned_list.add(word);
          System.out.println("    " + word);
      }
      return returned_list;
  }
  </code></pre>