Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Output of forEach Loop  RSS feed

 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying JSTL for each loop. Below is the code.

As a out put i am getting ${i} ${i} ${i} and not the values. Please let me know if I am doing some thing wrong here.


 
Abhilash Etikala
Ranch Hand
Posts: 38
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check whether Expression Language is ignored...if true make it false...

or else try using
something like this...


Hope it helps....
 
suraj bhatt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try using request.setAttribute("b",a);
 
Patil Niteen
Ranch Hand
Posts: 48
Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of the web application deployment descriptor are you using?

Check this....
The default value varies depending on the version of the web application deployment descriptor. The default mode for JSP pages delivered using a Servlet 2.3 or earlier descriptor is to ignore EL expressions; this provides backward compatibility. The default mode for JSP pages delivered with a Servlet 2.4 descriptor is to evaluate EL expressions; this automatically provides the default that most applications want. You can also deactivate EL expression evaluation for a group of JSP pages (see Deactivating EL Expression Evaluation).

Thanks,
Nitin
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Patil Niteen wrote:Which version of the web application deployment descriptor are you using?
Indeed -- a misconfigured web app is the most likely cause of this problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!