JSP include directive | JSP action directive |
<%@ include file=”filename” %> is the JSP include directive.
|
<jsp:include page=”relativeURL” /> is the JSP include action element.
|
At JSP page translation time, the content of the file given in the include directive is ‘pasted’ as it is, in the place where the JSP include directive is used. Then the source JSP page is converted into a java servlet class. The included file can be a static resource or a JSP page
|
The jsp:include action element is like a function call. At runtime, the included file will be ‘executed’ and the result content will be included with the soure JSP page. When the included JSP page is called, both the request and response objects are passed as parameters.
|
You may like:
Difference between equals() and = =
No comments:
Post a Comment