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 |
i have a log in web application .... i want restrict the user for particular no of users what is procedure to develop thus application
What are the features of struts 2?
What are the action classes in struts?
what is is the use DynaActionForm?
How properties of a form are validated in Struts?
What is the purpose of execute() method?
what is the difference between SAX Parser and DOM Parser??
14 Answers Cap Gemini, Goldman Sachs, HCL, Hidden Brains, HP,
What are the core classes of struts?
What is the purpose of @element?
What is the purpose of @stringlengthfieldvalidator annotation?
What is s token?
What is the purpose of interceptors?