3386 JSP and Javascript Parsing

Now that 3386 has fixed the 100% cpu system thrashing bug
when loading JSP files, I have been checking out how IDEA
parses my project's JSP and javascript files.

Following are biggest issues I found:

(1) IDEA doesn't resolve variables defined in included JSP files.

Most of the incorrect errors IDEA is flagging in my JSP
files are because all our JSPs include another
"GlobalCode.jsp" which defines some variables like

User user;
String login;
URLState uState;

These variables are referenced in the main JSP pages. IDEA
doesn't resolve them from the included "Global.jsp" and
flags them as "unresolved symbols". (See attached pic).

Related Trackers:

http://www.jetbrains.net/jira/browse/IDEABKL-381
Non-trivial JSP include file="" lead to red code in including JSP

http://www.jetbrains.net/jira/browse/IDEA-2440?vote=vote
JSP parser gets confused by includes

(2) IDEA is flagging unhandled exceptions as errors even though
errorPage is defined.


http://www.jetbrains.net/jira/browse/IDEADEV-1230
Exception is reported unhandled in JSP

http://www.jetbrains.net/jira/browse/IDEA-2693
Exceptions reported as unhandled in JSP


(3) Javascript issues

JSP's <![CDATA[<%=...%> are incorrectly parsed inside javascript

2 comments
Comment actions Permalink

I also work with JSP and try to separate common code in differents files.

I quite agree with the first point you've described.

In fact, I'm wondering if this issue could be solved.

0
Comment actions Permalink

Three JSP files in my project failed to parse. IDEA throws Exception when loading these files into the editor.

I attached the JSP files to the Jira Bug.

http://www.jetbrains.net/jira/browse/IDEA-3204

0

Please sign in to leave a comment.