hi all,
i am working on a web project. now the task is as follows:
i have a webpage on hosted on localhost. i have a page which i upload to it and put it in a specified location using a
servlet. now i have a
java class which has to read this uploaded file, i get the path of the uploaded file from servlet and create an inputstream using it. I have tested that the file is available through the context path.
my problem is that no matter what html file i upload, the inputstream is only showing the login.html. i don't have any idea why or how is this happening. i am running the project in eclipse, i have cleaned
tomcat, closed eclipse and restarted it. but the result is the same.
can anyone tell me why is this happening. i hope i was able to explain the problem clearly....
Thanks