EL expression in forEach (JSTL 1.1)

Hello people,
I've started using IDEA a few days ago and I'm having problem with JSTL. I downloaded Jakarta Taglibs 1.1.2 and added it as a library to my project.
When I create a JSP page like that:

]]>$ </c:forEach>
</body></html>

it seems, that everything is working. But when I want to use some EL expression in forEach (for example begin="${5-4}") and then make module,
I get "Error: For input string: "${5-4}"". Any idea what I am doing wrong?

4 comments
Comment actions Permalink

Jasper jsp validator or tag library validator complain about your EL

Largon wrote:

Hello people,
I've started using IDEA a few days ago and I'm having problem with JSTL. I downloaded Jakarta Taglibs 1.1.2 and added it as a library to my project.
When I create a JSP page like that:

<html><body>
<c:forEach var="i" begin="1" end="10" step="1">$ </c:forEach>
</body></html>

it seems, that everything is working. But when I want to use some EL expression in forEach (for example begin="${5-4}") and then make module,
I get "Error: For input string: "${5-4}"". Any idea what I am doing wrong?



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

0
Comment actions Permalink

Why is it so and what can I do about it? This expression is valid. Also when I change it in already deployed file, it works as expected.

0
Comment actions Permalink

You can switch it off

Largon wrote:

Why is it so and what can I do about it? This expression is valid. Also when I change it in already deployed file, it works as expected.



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

0
Comment actions Permalink

Thank you very much. I found it. If anybody has the same problem, it's in project settings, modules, web facet, java ee build settings.

0

Please sign in to leave a comment.