|
|
|
The simple case were A.jsp includes B.jsp and A.jsp can resolve variables declared in B.jsp. This works fine in IDEA 5.0
But I think Jetbrains needs to really think hard about this other case. What this request is asking for is that IDEA use it's knowledge of the project/module to find all JSP files which include the A.jsp <% StringBuffer name; %> <%@include file="/Fragment.jspf"%> B.jsp <% String name %> <%@include file="/Fragment.jspf"%> Fragment.jspf <p> name = <%=name%> </p> I'm a bit hesitant to see this functionality implemented because it could slow down JSP parsing One way to limit the scope is to only support this for JSP files with .jspf (JSP Fragment) suffix. In Selena, 6632 the following case works.
A.jspf: <%! private int attrA = 0; %> B.jspf: <%! private int attrB = attrA; %> C.jsp: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head><title>Simple jsp page</title></head> <body> <%@ include file="A.jspf"%> <%@ include file="B.jspf"%> </body> </html> References are resolved, at least highlighting and navigation to definition works. Are there still some important cases which does not work? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Not anymore. All builds after 3296 have this feature broken, so all <%@ page import="..."%>
directives from A.jsp are ignored in B.jsp and unqualified class names are all in red. References in B.jsp to the stuff declared in A.jsp are ok, though.