Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL

 
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....
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!