|Tweaking the JSP include path in Eclipse [message #899032]
||Mon, 30 July 2012 09:34
| Robert Munteanu
Registered: July 2009
I'm currently using a Java project with the following configuration:
- one source folder at '/content'
- JSPs, JS and CSS files are all placed under '/content'
- all JSPs start with a '<%@include file="/global.jsp"%>' directive
- the project is _not_ a web tools project since all our projects are Maven-based and we discourage manual configuration of projects ( see below for more details ).
The main problem that I have is that the @include directive is not getting resolved ( that JSP is just a bunch of taglib declarations and imports, for convenience ).
I did try adding a Dynamic Web Project facet to that project and configuring the content root to be '/content' and the context path '/'. However, that seems overkill to me since:
- I have to ask everyone to perform a manual configuration step ; if they get the paths wrong when configuring the facets there is no UI to fix them; they have to re-import
- I have to disable all validators, including the JS one since they use a lot of CPU and the JS one fails with internal errors
- The import creates unneeded src, META-INF and WEB-INF folders
Given that, I'd like to make Eclipse resolve that import without adding a project nature, and I'm willing to look into all options, including code contributions.
I'd like to hear your thoughts on this though before starting looking at the code though.
[Updated on: Mon, 30 July 2012 13:27]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03834 seconds