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


Please Help Members By Posting Answers For Below Questions

What is protected access modifier?

570


Is array serializable java?

515


Differentiate between vector and array list.

634


What is one third plus one third as a fraction?

485


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

575






How is java created?

532


What happens if main method is not static?

489


What is covariant return type?

639


Why is a string immutable?

542


What is the difference between dom and sax parser in java?

528


What happens when a thrown exception is not handled?

578


Explain the difference between collection api and stream api in java8?

505


Why are the destructors for base class and derived class called in reverse order when the program exits

1704


What is float in java?

557


Explain parallel processing in java8?

633