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

What are the steps of struts installation?

574


What are the major differences between html tags and strut specific html tags?

519


Can you explain the directory structure for a struts folder in brief ?

526


Explain about the process of functioning of the struts program?

593


Explain the difference between jakarta struts and apache struts?

531






What’s the difference between struts and turbine? What’s the difference between struts and espresso?

528


Does Struts2 action and interceptors are thread safe?

610


Is Struts Framework part of J2EE?

623


What is declarative exception handling in struts?

561


Why actionservlet is singleton in struts?

598


What is the use of jsonvalidation?

599


Explain how to work with error tags?

588


How do struts work?

526


How to combine the struts with velocity template?

492


Explain the components of struts?

544