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 to override the default error message that can come during file uploading process?
What is the purpose of @beforeresult?
What is the purpose of @customvalidator annotation?
What is token used for?
How can we handle exceptions thrown by application in Struts2?
What are the sections into which a strut configuration file can be divided?
Do you need an alignment after replacing struts?
What inbuilt themes are provided by struts2?
How we can controlled duplicate form submission in struts?
What is spring and struts in java?
What is the design role played by struts?
What do you mean by actionmapping?
What are the conditions for actionform to work correctly?
Why are springs better than struts?
What is ognl?