• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL Evaluation  RSS feed

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<% String[] names = new String[]{"Mahtab ", "Aftab ", "Alam "}; %>
<html>
<body>
Hey ${names[0]}!!
</body>
</html>


Why it does not print Hey Mahtab !!
There is an array names
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because scripting variables cannot be used with the EL.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bibeault
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!