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 is interceptor struts2?

1067


What does the term struts mean?

1037


What is an interceptor stack?

1085


What is the role of action class in struts?

1065


What is the difference between shocks and struts?

1007


List some bundled validators?

1041


what is ACID test for fresh engineers??what is the pattern??

2877


Why we use struts over servlets?

1125


When should be opt for struts framework?

1085


What is xml based validation in struts2?

1136


What does it cost to replace struts?

1024


What are the steps required for setting up validator framework in struts?

1085


What do you mean by struts.dev mode?

1036


What are the classes used in struts?

1137


What is struts and why it is used?

1016