We simply have an "include" directory, the JSPs there are mostly "snippets", i.e. code-only (<%
[LOTS OF CODE] %>), sometimes intermingled with some HTML; these
are then simply included into other JSPs with '<%@ include file="include/someFile.jsp"%>' - IDEA doesn't recognize identifiers in the "includes" per se, it
wants to import them etc. - okay, I could live with having little IDEAish editing capabilities within the include-JSPs, the problematic part is that on "find
usages", usages in these JSPs are not found - bad, since I can no more rely on find usages now.
I should add that IDEA
does recognize variables declared in the including-page within the included-page, the biggest problem seem to be imports, which aren't
recognized, so no methods can be resolved and thus, everything is "red"; on the other hand, the main-page imports for included page are flagged as "unused".
I'm using Selena b#6963 on JDK6.