Red squiggle in struts html:img's onclick attribute

I've noticed that whenever I do something like this in my JSP:



The first % character in the onclick has a red squiggle and reports (3 times) "statement expected" and the scriptlet's closing > has a red squiggle and reports (6 times) "expression expected".

I guess this is a javascript check trying to evaluate something that is not being statically coded? anyway to improve this?

3 comments
Comment actions Permalink

This should work in latest IDEA 7.0.4 eap

Mike Fourier wrote:

I've noticed that whenever I do something like this in my JSP:

 
> 
> 
> 


The first % character in the onclick has a red squiggle and reports (3 times) "statement expected" and the scriptlet's closing > has a red squiggle and reports (6 times) "expression expected".

I guess this is a javascript check trying to evaluate something that is not being statically coded? anyway to improve this?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks Maxim,

I just checked with build #7905 and it has changed a bit.

I still get the red squiggles, but now the first one has only 2 (instead of 3) and the second one has 4 (instead of 6).



If I get time soon, I will try the bleeding edge.

0
Comment actions Permalink

Just thought I'd mention, this is still a problem with build 7941

0

Please sign in to leave a comment.