Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTweaking the JSP include path in Eclipse
https://www.eclipse.org/forums/index.php/mv/msg/368714/899032/#msg_899032
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.
Thanks,
Robert]]>Robert Munteanu2012-07-30T09:34:14-00:00Re: Tweaking the JSP include path in Eclipse
https://www.eclipse.org/forums/index.php/mv/msg/368714/899073/#msg_899073
http://www.eclipse.org/m2e-wtp/), but I don't have any experience using it. Otherwise, the org.eclipse.wst.common.modulecore.ModuleCoreNature nature in the .project file and the project's .settings/org.eclipse.wst.common.component are really all that's needed to support defining where '/' actually is.]]>Nitin Dahyabhai2012-07-30T13:34:55-00:00Re: Tweaking the JSP include path in Eclipse
https://www.eclipse.org/forums/index.php/mv/msg/368714/899254/#msg_899254
Robert Munteanu2012-07-31T08:51:06-00:00