Website directory structure different from eclipse <p>I am coding a website using java servlets and am using eclipse and tomcat. When I test it using localhost, it works fine. But when I am deploying it on my actual website, the directory structure is messed up and the files are not called properly. </p> <p>My eclipse directory structure on localhost is </p> <p>Project Name .src/packageName/java files .WebContent/HTML files.</p> <p>When I make a call from the html files, I use the relative location and tomcat automatically knows to look in the src/packageName folder. For example, from the /WebContent/login.html page makes a onClick call as follows, . This will automatically trigger the java file in /src/packageName/welcome</p> <p>When I am deploying it in my actual website, the WebContent/login.html is throwing an error WebContent/welcome file is not found. How do I tell my website to search in /src/packageName folder?</p>