I need to do a file search within a particular directory. I have no problems
searching files on my local machine , but when I am connected to a web server ,
the search fails. I think i am missing something , can anyone help.
The connection is OK because when I am able to establish a FileIntputStream and
download a file from the same location
Here's the code
URL url = new URL("https://beta.something.com/logs"); //This location stores all
log files , I need to get these file names
URLConnection urlC = url.openConnection();
String[] filelist ;
File logfile = new File(url.toString());
if (logfile.exists())
{
filelist = logfile.list();
for(int i= 0 ;i < filelist.length ; i++)
{
System.out.println(filelist[i]);
}
}
Appreciate your responses
Santosh
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets