Jsp Include
Advertisements
Jsp Include
This action tag is used for including the response of one resource like a jsp or a servlet or a html into another jsp page. In jsp, we have two types of including,
- include directive
- include action
Main difference between include directive and include action
Include directive is for static including and include action is for dynamic including.
Internally a container uses RequestDispatcher's include method, for executing
When use JSP Include Directive
We choose include directive when a destination is a static page like html and we choose include action, when a destination is a dynamic resource like a jsp or a servlet.
Google Advertisment