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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sharmila
You can try "indexId" param in the logic:iterate
It will give us the index value. So, inside the loop, you
can check if index value is multiple of 5 then only show the
record from the bean.
| Is This Answer Correct ? | 6 Yes | 5 No |
What do you mean by the abstract package in struts2, and what is its utilization?
What is the purpose of @typeconversion annotation annotation?
how you implement and maintain your struts project by using MVC2 arch?
what are tiles in struts?
What is MVC Architecture?
21 Answers HCL, Hexaware, Infosys, Infrascape, Tech Mahindra,
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?
wat happen when the connection is nt closed in jdbc n what vl happen when i interchange in executequery n execute statements
What is controller in struts2?
Is Struts Action class Thread Safe?
Mark the differences between html tags and strut specific html tags.
what are the actions in struts?
What are the features of struts 2?