How can I make IDEA resolve references in my JSP? Follow
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.)
Please sign in to leave a comment.
Nothing. This is an obvious bug. Could you please file a request for that?
Dmitry Avdeev wrote:
Thanks!
See http://www.jetbrains.net/jira/browse/IDEA-19489