Red squiggle in struts html:img's onclick attribute

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



"
  onclick="<%= "profile_getProfile('" + BcompanyNbr + "')" %>"/>
]]>


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?

0
Avatar
Permanently deleted user

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:

 
> 
> 
>    width="20"
>   height="20"
>   border="0"
>   align="middle"
>   title="<%= "Company: " + Bcompany %>"
>   onclick="<%= "profile_getProfile('" + BcompanyNbr + "')" %>"/>
> ]]>


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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

0

请先登录再写评论。