what is the difference between @include page and @include file
Answers were Sorted based on User's Feedback
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 |
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 |
What does .equals do in java?
what is main difference between architecture,framework and design pattren
How could Java classes direct program messages to the system console, but error messages, say to a file?
please send me hr interview questions in it industry
Different types of modifiers?
How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u.
Can we override private method in java?
What is supplier in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
what is an anonymous class?
What does file separator do in java?
What are untrusted applets?