Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL  RSS feed

 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,

If I want to iterate over all the request parameters of a form thru EL, what will be the code. Is it possible. We can do the same easiliy with the help of scripting ...

in scripting we have methods like request.getParameterNames for solving the above problem.

Secondly say if we need to iterate a simple loop using jstl, how are we going to achieve it, For example say I want to iterate a loop uptil count of 10....
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have paramValues and param implicit EL objects. Use them in for loop.





To iterate a loop uptil count of 10....



Regards,
Shivani
[ September 03, 2006: Message edited by: Shivani Chandna ]
 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!