How to mention the relative path of the file in fileinputstream?
The directory structure is as follows,Inside the **model** folder i have a
java file called GetContents.java
I need to refer the input.xls( a file inside the template folder ) in GetContents.java file.
I tried
new FileInputStream("..\\..\\..\\template\\DevContentsTemplate.xls")
cos the GetContents.class file will be inside webcontent\web-inf\classes\model\GetContents.class and I thought if i use the above relative path , it should refer webcontent\web-inf\template\input.xls
But it throws a file not found exception.
Please note that i have configured the
tomcat server working directory to point to my current project "CVT"
Kindly help.
Thanks.