ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Struts
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
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.
 Question Submitted By :: Sona
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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 ?    1 Yes 3 No
Sharmila
 
  Re: 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
# 2
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 ?    8 Yes 0 No
Murali Krishna Yella
 
 
 

 
 
 
Other Struts Interview Questions
 
  Question Asked @ Answers
 
Where can i get jar file for use the struts-tags in struts2?  1
where you will implement the tiles in struts? Wipro2
is it possible to see actionservlet in my system. if yes how  5
What is Portlet???? when,where and why we use it ?? Wipro2
can anyone help me to send the code for Jasper Reporting in java?plz CSC2
What are Struts properties? VI-eTrans2
what is purpose cvs and vss in eclipse?  2
What is the difference between a Strut and a Class?  1
what are tiles in struts? Wipro2
advantages& 5 disadvantages of MVC architecture Satyam1
How to pass runtime Parameter in Struts1.2?  2
If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da??? TCS3
how the error can be showed in the jsp page in struts? Wipro2
what is the difference between ServletContext and ServletConfig?  4
what are the disadvantages of MVC architecture INDUS3
what r the disadvantages of MVC-2 Architecture? Process-IT1
life cycle of struts?  7
Is form beans are serializable or not? Magna-Infotech8
what is request processor class ? Fidelity5
how handle when client send multiple request at atime for multiple servlets servlets? IBM2
 
For more Struts Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com