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
Give us the name of the list layoutmanagers in java?
What is use of super keyword in java?
How does multithreading take place on a computer with a single cpu in java programming?
What does sizeof return?
What are advantages and disadvantages of OOPs?
What is java volatile?
what is meant by Garbage collection?
Why synchronization is important in java?
What is a substring of a string?
What is a java developer salary?
What is the indent key?
Why can't we make a class private in java?
How do you trim a space in java?
What is square root in java?
What should I import for arraylist in java?