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


Please Help Members By Posting Answers For Below Questions

Does apache struts run on windows?

734


Is struts 1 still supported?

683


Does struts include its own unit tests?

716


What is the purpose of global-forwards tag in struct-config.xml?

758


How to explain Software Bank Loan descriptions

2118


Why are frameworks used?

742


What are the components of struts framework?

775


How you will enable front-end validation based on the xml in validation.xml?

764


How does interceptor work in struts2?

699


How to use forward action to restrict a strut application to mvc?

780


What do struts do?

714


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

758


What is the purpose of @emailvalidator annotation?

673


Difference between struts and spring? Or why use spring, if you are already using struts?

718


What is java struts?

708