Jsp My Titles4Jsp
From Fxp Wiki
<%@ page import="vendo.*" %> <%@ page language="java" import="java.io.*" %> <html> <head> </head> <body> <% try { //e:/p/web/www-data/jspwiki/ File dir = new File("C:/p/web/www-data/jspwiki/"); String[] children = dir.list(); if (children == null) { // Either dir does not exist or is not a directory } else { loop: for (int i=0; i<children.length; i++) { // Get filename of file or directory String filename = children[i]; File f2 = new File(dir, children[i]); if (f2.isFile()){ //String mypath = f2.getPath() + f2.getName(); //out.println("<br/>" + mypath); try{ MyTitles4 myFourthExample = new MyTitles4(f2.getPath(),out);} catch (Exception e){ } } } } } catch (Exception e) { //continue loop; //out.println("Something bad happened!"); } %> </body> </html>
Categories: Jspwiki | Wikis | Java | Source Code
