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
What is lookupdispatchaction?
Can we have multiple struts config files in a single web app?
What’s the difference between struts and turbine? What’s the difference between struts and espresso?
Explain struts?
What are the conditions for actionform to work correctly?
Are actions thread safe?
Which library is provided by struts for form elements like check boxes, text boxes etc?
How many servlet controllers are used in a Struts Application?
What is actioninvocation in struts2?
What's mvc pattern ?
What is a custom tag?
What is the configuration files used in struts?
What is the use of token interceptor in Struts2?
Can a reducer dispatch an action?
What is interceptor struts2?