How to handle the remote files in servlets

Hi all,I want to handle the file remotely in a server side class file by giving the realtive path , let us say some thing likeFile f = new File("http://localhost:8080/images/");here images is a directory, my requirement is to get all the image names in the folder.
[292 byte] By [srinannapaa] at [2007-10-3 9:46:26]
# 1

you don't have to do it through the network layer...

check the servlet context doc

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html

(specially the getRealPath an getResource methods

It helps you to know where you are on the localfilesystem, then you can retrieve the files you want

alban.maillerea at 2007-7-15 5:03:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...