Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between @include page and @include file

Answers were Sorted based on User's Feedback



what is the difference between @include page and @include file..

Answer / alim atar

<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

what is the difference between @include page and @include file..

Answer / satyanarayana

<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

Post New Answer

More Core Java Interview Questions

Can you pass by reference in java?

0 Answers  


What is a stream? what are the different types and classes of Streams?

2 Answers  


Why java is made?

0 Answers  


Difference between prefix and postfix forms of the ++operator?

3 Answers  


Is java pure object oriented or not? if yes, give the valid reason.

13 Answers   Emphasis, NIIT, Syntel, Wipro,


what release of java technology are currently available what do they contain?

1 Answers  


What is java object name?

0 Answers  


What is protected in java?

0 Answers  


What is the purpose of void class?

0 Answers  


What must a class do to implement an interface in java programming?

0 Answers  


How finally used under exception handling?

0 Answers  


What is a finally block? Is there a case when finally will not execute?

0 Answers  


Categories