Good afternoon, I have a directory called "musics" with 23 files.
I'm using this class:
public listarArquivos() throws IOException {
File file = new File(diretorio);
File musicas[] = file.listFiles();
int i = 0;
for (int j = musicas.length; i < j; i++) {
File arquivos = musicas[i];
System.out.println(arquivos.getName());
}
Music appears on the console.
Now how do I get into jsp?
Thank you