jaredgalen
Programmer
I need to access a set of files (images) directly from the server using a java class.
Is this possible? Specifically, I take a directory name and get the list of files from that directory
if(location.exists())
{
if(location.isDirectory())
files = location.listFiles();
}
I have put the directory that I'm using in WEB-INF, classes, lib and with the jsp files but nothing works.
Is it possible to access a file\directoy directly off the server from a Java class?
Any help is greatly appreciated
jG
Is this possible? Specifically, I take a directory name and get the list of files from that directory
if(location.exists())
{
if(location.isDirectory())
files = location.listFiles();
}
I have put the directory that I'm using in WEB-INF, classes, lib and with the jsp files but nothing works.
Is it possible to access a file\directoy directly off the server from a Java class?
Any help is greatly appreciated
jG