I am trying to access a JSP page through a Servlet using java.net.URL and java.net.HttpURLConnection. I have done this successfully when attempting to access pages in directories that are not password protected, but am receiving a FileNotFoundException when it is in a password protected directory.
In IE and Netscape I can log into the Web Server and request the page at the same time by constructing a URL like so:
http://username:[EMAIL PROTECTED]/index.html
When I try to use this approach in my Servlet the URL class interperets my username to be the host name.
Any ideas?
Thanks,
Dave Eaves
WWW.COM
