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
What is time complexity algorithm?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What are the legal operands of the instanceof operator?
What does += mean coding?
How do you check if a string contains only numeric digits?
Explain features of interfaces in java?
How to create a fecelet view?
What is reverse function?
How do I compare two strings in word in java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is methodological framework?
Why we used vector class?
Can an interface extend a class?
What is space character in java?
What is native code?