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 strut web xml?
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
What is the use of resourcebundle.properties file in Struts Validation framework?
What is struts-default package and what are it’s benefits?
State an example of struts configuration file as an action parameter for action servlet.
What are the core classes of struts framework? Explain
What is lookupdispatchaction?
Explain integrate log4j in struts2 application?
What is difference between struts1 and struts2?
What is the purpose of @after annotation?
how to get the last 10 elements using logic:iterate in struts with hiernate from database.
Explain struts.devmode?
Is struts efficient?
What is difference between interceptors and filters?
What validate() and reset() method does ?