This is regarding a query to read a file in a remote server.
The user interface is a html screen which contains 2 fields: Server ip & file name. Both are drop down fields.So they can select only the given file names & server names.
A servlet will recieve the data from the html. The logic used is as below: A URL is created with input given and using URLCOnnection i get the inputstream and read the data in the file. But i get an error, "file not found." The url path formed looks like this http://serverip/filepath/filename.
The file i am checking is in the home directory in the unix server. Will the path given in the url check in the home directory. If not how to specify the path to the "home" directory in the url path.