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 lookupdispatchaction?

1032


Can we have multiple struts config files in a single web app?

947


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

990


Explain struts?

1051


What are the conditions for actionform to work correctly?

1041


Are actions thread safe?

984


Which library is provided by struts for form elements like check boxes, text boxes etc?

933


How many servlet controllers are used in a Struts Application?

1139


What is actioninvocation in struts2?

1031


What's mvc pattern ?

1020


What is a custom tag?

934


What is the configuration files used in struts?

957


What is the use of token interceptor in Struts2?

1090


Can a reducer dispatch an action?

954


What is interceptor struts2?

1025