History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-17070
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Maxim Shafirov
Reporter: Dmitry Avdeev
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

IDEA does not recognize JSP imports defined in the including page

Created: 21 May 07 18:13   Updated: 26 Jul 07 13:02
Component/s: J2EE.JSP
Fix Version/s: Selena 7096

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,963
Fixed in build: 7,095


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
Maxim Shafirov - 17 Jul 07 18:38
Sample anyone. The following works just OK:
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="includes/include.jsp"%>
<html>
  <%
      ArrayList list;
  %>
</html>

Maxim Shafirov - 24 Jul 07 20:18
Resolve and find usages part is fixed. There's a related issue with unused imports/optimize import, which is filed separately as IDEADEV-19368