ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1720)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (43)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (195)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (145)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
what is the difference between @include page and @include file
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between @include page and @include file
Answer
# 1
<jsp:include page="page.jsp" >
is action which include the output of page.jsp at
dyanamically.Instead of copying all content of page.jsp
Container transalte ,compiles page.jsp separtly and copy
the ouput of page.jsp to current page.It means it's
dyanamic inclusion.
<@include file="page.jsp">
it is directory which copy all content's of page.jsp to
current jsp page and then complete current page is
translated and compiled. It is static inclusion of file
which means copy all source code to current page as it is.
 
Is This Answer Correct ?    24 Yes 2 No
Alim Atar
 
  Re: what is the difference between @include page and @include file
Answer
# 2
<jsp:include page="page.jsp" >
is action which include the output of page.jsp at
dyanamically.Instead of copying all content of page.jsp
Container transalte ,compiles page.jsp separtly and copy
the ouput of page.jsp to current page.It means it's
dyanamic inclusion.

In translation it will create only two servlet.

After inclusion if there any changes in source file will
reflect in jsp

it is evaluated with every request.



<@include file="page.jsp">
it is directory which copy all content's of page.jsp to
current jsp page and then complete current page is
translated and compiled. It is static inclusion of file
which means copy all source code to current page as it is.

In translation it will create only one servlet.

After inclusion any change in source file will not reflect
the jsp.
it is evaluated only once at translation time.
 
Is This Answer Correct ?    7 Yes 2 No
Satyanarayana
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ? TCS 1
what are the differences between final,finally,finalize methods? IBM 14
What are access modifiers in Java ?   6
class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object. Yamaha 2
when System.out.println("") is executed what happens in the back ground?   2
Can applet in different page/s communicate with each other?   1
what is features of jdk 1.5? TCS 2
What are init(), start() methods and whey they are called?   2
Functionality of JVM? Infosys 7
what is the difference between equals method and == Professional-Access 17
I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?   4
can we access the super class method using subclass object?   4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com