How to use Break / exist statement here in foreach (JSTL)
saravanan sambandam
Greenhorn
Joined: Aug 30, 2010
Posts: 24
posted
0
Hi frd,
while iterating collection object using Foreach by JSTL i am getting duplicates. How could stop the duplicate from the comparison point itself. If i used script let <% %> i can use break statement then i could avoid the duplicate. Please help me.
Paul is spot on. In general it is always better to perform any data processing, including data cleansing, before you send it to the JSP. Keep the JSP as simple as possible.