So I have a Java Web Project in Eclipse - it's just eight files that I export as a WAR, and when I deploy it to Tomcat as a standalone app, with no 'include' statements, it works just fine.
The issue is that this webapp is destined to integrate into an existing website, which was not developed by me - this is a problem because I need to import files that will be present at run time, but which Eclipse freaks out about because it can't find them in this project.
For example, to give my app the site-wide header, I tried to use:
<%@ include file="../includes/head_section.html" %>
But Eclipse says no. Specifically it says:
Fragment "includes/head_section.html" was not found at expected path /my_project/WebContent/includes/head_section.html
How can I tell Eclipse to relax - the file will be there when you're loaded, the world is bigger than this particular webapp?
I have tried all plausible path combinations (omitting the '..', adding a '/' at the start, adding more ../../../s), and also tried giving it the external URL of the header file (though I didn't really expect that to work). I've also looked through the app/Eclipse settings, but I'm still kind of new to Eclipse and there's a lot to process there.
Thanks for any help - as always feel free to tell me if I haven't provided enough information. I'm using Eclipse for Java EE, on Ubuntu.