Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Cannot resolve property or method (dynamic property?) when using maps in JSP EL expressions

$
0
0

Hi,

 

We have a chunk of code like this in a JSP file (yeap, damn ugly scriptlets):

 

<%

     Map<String, String> fooMap = new HashMap<String, String>();

     fooMap.put("cssClass", "...");

%>

<c:set var="fooMap" value="<%= fooMap %>" />


<div class="${fooMap.cssClass}">

...

</div>

 

IDEA marks ${fooMap.cssClass} in orange can complains that "Cannot resolve property or method (dynamic property?)"

 

Before filing a bug report I wanted to see if there's a way to suppress this warning for maps or if I am missing something.

 

Thanks,

Behrang


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>