IDEA doesn't validate EL expresssions

I am trying to minimize the usage of scriptlets in my JSP pages, by using JSTL c:out, etc.

But I am having a very hard time because IDEA gives no indication if I type a bean property wrong.
For example if I type ${foo.baz} instead of ${foo.bar} (assuming foo.baz does not exist), it won't tell me. It won't autocomplete either, so it's next to impossible to get it right.

In the above example it does check that the bean is right(will tell me if I type foo wrong), just none of its properties.

2 comments
Comment actions Permalink

Please, give complete example of jsp page

hloeblich wrote:

I am trying to minimize the usage of scriptlets in my JSP pages, by using JSTL c:out, etc.

But I am having a very hard time because IDEA gives no indication if I type a bean property wrong.
For example if I type ${foo.baz} instead of ${foo.bar} (assuming foo.baz does not exist), it won't tell me. It won't autocomplete either, so it's next to impossible to get it right.

In the above example it does check that the bean is right(will tell me if I type foo wrong), just none of its properties.


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

0
Comment actions Permalink

It really depends on where foo is coming from. You have to tell the editor what is available. An example is avoid using jsp includes and use jsp tag files and specify the variables. Also, add variable declarations to your tld files for your custom actions.

0

Please sign in to leave a comment.