Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

i have list of values(e.g 100).
using logic:iterate, how can i print the multiples of 5th
element?
how the logic:iterate will understand the multiples of 5.

Answer Posted / sharmila

You can try "indexId" param in the logic:iterate

It will give us the index value. So, inside the loop, you
can check if index value is multiple of 5 then only show the
record from the bean.

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of @key?

1046


What is the purpose of @emailvalidator annotation?

1008


How is the action mapping specified?

952


What is struts 2 framework in java?

1035


How action-mapping tag is used for request forwarding in struts configuration file?

952


What are the classes used in struts?

1080


What is the difference between empty default namespace and root namespace?

1123


What is actioncontext?

943


How can we work with error tags?

983


Why is it called struts?

948


What is the use of token interceptor in Struts2?

1072


What is the difference between validation.xml and validator-rules.xml files in struts?

905


Why do we use struts?

1141


How interceptor works in struts 2?

1043


What are the benefits of Interceptors in Struts2?

1166