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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java thread dump, how can we get java thread dump of a program?

1012


What is :: operator in java?

978


What is a line separator in java?

989


What are the differences between this and super keyword?

951


What is a singleton in genetics?

1083


Is there any limitation of using inheritance?

1093


What is string intern in java?

1033


What are different types of constants?

1056


Can Exception handling we can handle multiple catch blocks?

1045


What is the difference between overriding & overloading?

1078


what is anonymous class in java?

1039


Why volatile is used in java?

1078


When would you use a static class?

990


Can we override constructors?

1008


What are the properties of thread?

932