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

How to build struts application in eclipse?

932


What are the two types of validations supported by validator framework?

973


What are the steps of struts installation?

952


What is struts?

931


What's mvc pattern ?

948


What is the difference between struts and spring? Explain

859


How you will enable front-end validation based on the xml in validation.xml?

1009


What do you mean by action errors and what are the results they force?

997


How the flow of various requests happens in struts application?

937


What are the major differences between html tags and strut specific html tags?

886


Explain struts?

968


What is the purpose of @expressionvalidator annotation?

982


Why do we use struts?

1078


How to explain Software Bank Loan descriptions

2403


How do you convert struts to springs?

974