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 applications of struts?
What is the design role played by struts?
Is Struts Framework part of J2EE?
What is action class? What are the types of action class?
What are inner class and anonymous class?
What is the purpose of @result?
What is the purpose of @results?
How is a lookup dispatch action created?
What is the purpose of execute() method?
What is the role of action class in struts?
Why do we need struts?
What is struts? Explain
How is the action mapping specified?
State an example of struts configuration file as an action parameter for action servlet.
Explain about the library tag?