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 / 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 |
Post New Answer View All Answers
What is the purpose of @key?
What is the purpose of @emailvalidator annotation?
How is the action mapping specified?
What is struts 2 framework in java?
How action-mapping tag is used for request forwarding in struts configuration file?
What are the classes used in struts?
What is the difference between empty default namespace and root namespace?
What is actioncontext?
How can we work with error tags?
Why is it called struts?
What is the use of token interceptor in Struts2?
What is the difference between validation.xml and validator-rules.xml files in struts?
Why do we use struts?
How interceptor works in struts 2?
What are the benefits of Interceptors in Struts2?