what is the difference between @include page and @include file
Answer Posted / 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 |
Post New Answer View All Answers
When object is created and destroyed?
Why we used break and continue statement in java?
What are format specifiers in java?
Can we override the static method?
What is a literal coding?
What is the byte order of byte buffer?
Why does java not allow multiple public classes in a java file ?
What is the difference between a choice and a list?
Can a class be private?
Which class is the superclass for every class in java programming?
what is instanceof operator used in java?
What are actual parameters?
How do generics work in java?
What function extracts specified characters from a string?
define polymorphism in java