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 |
Describe the mvc on struts?
Is struts mvc framework?
What is the struts in java?
Briefly tell the two kinds of form beans.
why do we typecast ActionForm into our plain java bean class in Action class? What is the reason?
What is the purpose of @requiredstringvalidator annotation?
What is dispatch action class?
What is the difference between shocks and struts?
What are the cons of struts 2?
What is spring hibernate and struts in java?
How many struts config file can be created in struts?
can anybody tell.what is the difference between Forward Action and Action Forward?