Hi All,
I have a servlet application,part of which calls a file from my resources folder through a relative path; ie: resources/myfile.txt . When i compile and test it through junit all works well. The problem arises when i deploy in tomcat. The path it tries to read is d:\tomcat\bin\resources\myfile.txt!! why does it go and look for it there? is there a way, without making it absolute to fix this issue?
Thanks in advance
Nick F
I have a servlet application,part of which calls a file from my resources folder through a relative path; ie: resources/myfile.txt . When i compile and test it through junit all works well. The problem arises when i deploy in tomcat. The path it tries to read is d:\tomcat\bin\resources\myfile.txt!! why does it go and look for it there? is there a way, without making it absolute to fix this issue?
Thanks in advance
Nick F