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 |
What is the use of forwardaction?
What is the role of action class in struts?
How do u provide security to ur project?(Banking domain project)
Explain the difference between dispatchaction and lookupdispatchaction in struts?
when we enter the data in the form how it is stored in formbean class setter and getter methods?
How display data base errors on web console by using the Struts Framework?
what is purpose cvs and vss in eclipse?
when connecting with the database,if database server is down,ho can we handle this exception in struts,how can we send error message to the user?
What are interceptors in struts 2?
What is the configuration files used in struts?
What is the purpose of @expressionvalidator annotation?
How to display validation errors on jsp page?