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 / murali krishna yella

ya.. this will surely work fine

<logic:iterate id="item" name="listName" scope="request"
indexId="index">
<%
if( (index%5)==0 ){
<bean:write name="item"/>
}
%>
</logic:iterate>

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the classes used in struts?

1057


How exceptions are handled in struts application?

1122


What is the purpose of @key?

997


Explain the components of struts?

924


What is the difference between forwardaction and includeaction?

1112


Why is it called struts?

908


What are the custom tags?

871


What is the difference between struts and spring?

901


What is the purpose of '@customvalidator'?

980


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

889


How we can configured action mapping in struts?

980


What is struts framework?

944


How many instances of servlet usually run in a struts application ?

976


Is struts 1 still supported?

897


How struts2 supports internationalization?

1087