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
How we can configured action mapping in struts?
What are the differences between http direct and http indirect?
How we can install struts?
What are disadvantages of Struts?
What is the use of token interceptor in Struts2?
How is token generated?
What does modeldriven interceptor?
Which file is used by controller to get mapping information for request routing?
What is the purpose of @element annotation annotation?
What are the steps used to setup dispatch action?
Why are struts tightly coupled?
What is the purpose of @element?
What is the use of Struts.xml configuration file?
What is interceptor struts2?
How do you convert struts to springs?