91-9990449935 0120-4256464 |
jsp:include action tagThe jsp:include action tag is used to include the content of another resource it may be jsp, html or servlet. The jsp include action tag includes the resource at request time so it is better for dynamic pages because there might be changes in future. The jsp:include tag can be used to include static as well as dynamic pages. Advantage of jsp:include action tagCode reusability : We can use a page many times such as including header and footer pages in all pages. So it saves a lot of time. Difference between jsp include directive and include action
Syntax of jsp:include action tag without parameterSyntax of jsp:include action tag with parameterExample of jsp:include action tag without parameterIn this example, index.jsp file includes the content of the printdate.jsp file. File: index.jsp
File: printdate.jsp
Next TopicJava Bean
|