How can I make IDEA resolve references in my JSP?

I inherited a Spring application where JSPs are getting deployed to /WEB-INF/jsp/ but static resources (for example images) are deployed directly to the root folder of the WAR file. I have configured the Web facet to have two "Web Resource Directories": /web -> / /jsp -> /WEB-INF/jsp That works fine when building the project, the war works ok and the structure looks exactly like it does when built using ant. However: How do I make IDEA recognize paths to the war root? For example in on of my JSP files IDEA warns about saying "Cannot resolve file or directory or web directory element 'img'" (but there is a file /web/img/03.gif) Even worse: IDEA says this is correct ]]>
However that is incorrect, because the path gets evaluated on the client, so it
does not consider the web app's context path.

What am I doing wrong?

(BTW I left the spring facet like it was auto-detected by IDEA.)

2 comments
Comment actions Permalink

Nothing. This is an obvious bug. Could you please file a request for that?


0
Comment actions Permalink

Dmitry Avdeev wrote:

Nothing. This is an obvious bug. Could you please file a request for that?

Thanks!
See http://www.jetbrains.net/jira/browse/IDEA-19489

0

Please sign in to leave a comment.