0

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

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 >

...

</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

3 comments

Please sign in to leave a comment.