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 is interceptor struts2?
What does the term struts mean?
What is an interceptor stack?
What is the role of action class in struts?
What is the difference between shocks and struts?
List some bundled validators?
what is ACID test for fresh engineers??what is the pattern??
Why we use struts over servlets?
When should be opt for struts framework?
What is xml based validation in struts2?
What does it cost to replace struts?
What are the steps required for setting up validator framework in struts?
What do you mean by struts.dev mode?
What are the classes used in struts?
What is struts and why it is used?