How can I check to see if a network file exists using JSP code from the client side. If I run on my local web host server the File class works to find a file using the unc path but when I deploy it to the production web server the file cannot be found.
Where does this "network file" exist - on the client where the browser runs, on the server where the web app runs, or on some other machine?
Joined: Nov 16, 2004
It is located on a network machine different from the Web Server.
I think I might have found another solution at least partly. Instead of the File class I am using the URL Class except I cannot figure out how to tell if the URL does not return as valid. How can i test the URL to know wheather or not to process other code on my JSP?
Joined: Mar 22, 2005
Using the File class should work, unless that machine has a different type of file system, e.g. SMB - is that the case?