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 are the classes used in struts?
How exceptions are handled in struts application?
What is the purpose of @key?
Explain the components of struts?
What is the difference between forwardaction and includeaction?
Why is it called struts?
What are the custom tags?
What is the difference between struts and spring?
What is the purpose of '@customvalidator'?
What is the difference between validation.xml and validator-rules.xml files in struts?
How we can configured action mapping in struts?
What is struts framework?
How many instances of servlet usually run in a struts application ?
Is struts 1 still supported?
How struts2 supports internationalization?