• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL with Tomcat 6

 
Olivier Lemarra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm newbie in JSP programming :

This code not working nicely :

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

It display :
${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i}

Instead of :

1 2 3 4 5 6 7 8 9 10

x 1000

(i'm working with Tomcat 6.0.20)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is likely your web app is misconfigured, preventing the EL from working. See the JSP FAQ for properly setting up a web app to work for the JSTL and EL.

In particular, make sure that your web.xml is not declared using the Servlets 2.3 DTD.
 
Olivier Lemarra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was cause of 2.3 DTD. Thanks a lot for your help

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!