cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Morrison <john.morri...@experian.com>
Subject <util:include-expr>
Date Thu, 24 Aug 2000 09:11:03 GMT

Does anybody know how to use this?

I'm attempting to get a node from a file which has been found dynamically
(ie using java).  Does anybody know how to access it?  I've got this far...

 File[] list = path.listFiles(new FileFilter() {
  public boolean accept(File f) {
   return f.isFile()); }});

 <files>
  <xsp:logic>
   for(int i = 0; i &lt; list.length; i++) {
    <file>
     <name><xsp:expr>list[i].getName()</xsp:expr></name>
     <util:include-expr>  
      <util:expr>
       <xsp:expr>list[i].getName()</xsp:expr>
      </util:expr>
     </util:include-expr>
    </file>
   }
  </xsp:logic>
 </files>

Anybody?

Mime
View raw message