Hello im trying to access and use a HTML file in a tomcat servlet from my InteliJ project folder . I deploy the Intelij Porject with smart-tomcat.
In the project structure I have tried to put the html file in the root of the project(C/User/Empty/Projects/servlet) but it just doesn't go to the directory that tomcat uses and reads from (C:\Users\Empty.SmartTomcat\servlet\rest).
My question is how will I be able to move the file dynamically when I deploy it and accsess it from my code ? eg (new File("relative/path")) thats the same on project and when deployed on tomcat
Thanks in advance.