Hi, I am writing a servlet that will parse HTML code. I would like the servlet to retrieve an HTML page that is given as a parameter in the GET request. Does anyone know the easiest way to do this. Thanks, Richard
Although I could be wrong, but I thought the java.io.File class handled files on a local machine and the java.net.URL class handled files across a network (i.e. Internet). I have used the java.io.File class in JavaServer Pages and Servlets for files on my server only, but I don't think it worked when I tried to instaniate them as follows: File f = new File( "http://www.webnelly.com/includes/index_main.htm" ); I thought which class you used was dependant on whose files you were looking at (which wasn't specified in the orignal post). Please correct me if I've said anything in error (which has been known to happen).