Differentiate between <jsp:include page=…> and <%@include file=…>.

Report
Question
10 views

Please explain why do you think this question should be reported?

Report Cancel

Both these tags include information from 1 page to another.

The first tag acts as a function call between two Jsp’s. It is executed each time client page is accessed by the client. It is useful to modularize the web application. New content is included in the output.

The second tag content of file is textually embedded having similar directive. The changed content is not included in the output. It is helpful when code from one jsp is required by several jsp’s.

Please follow and like us:

About the Author