Jsp:Include Action Tag
- jsp:include action tag is used to include the content of another resource at the specific position into current JSP page.
- Another resource can be servlet, jsp or html file.
Syntax:
<jsp:include page=”URL of another resource”/> |
welcome.jsp:
<html> <head> <title>include action example</title> </head> <body> <h3>Hello this is a include action example.</h3> <jsp:include page=”home.jsp”/> </body> </html> |
home.jsp:
<html> <head> <title>include action example</title> </head> <body> <h4>This content is of included file.</h4> </body> </html> |