Example & Tutorial understanding programming in easy ways.

In JSPs how many ways are possible to perform inclusion?

 We can perform inclusion In JSP, in the following ways.


By include directive:

<%@ include file=”header.jsp” %>

The content of the header.jsp will be included in the current jsp at translation time. Hence this inclusion is also known as static include.

By include action:

<jsp:include page=”header.jsp” />

The response of the jsp will be included in the current page response at request processing time(run time) hence it is also known as dynamic include.

by using pageContext implicit object




This inclusion also happened at request processing time(run time).

by using RequestDispatcher object


RequestDispatcher rd = request.getRequestDispatcher(“/header.jsp”);



Read More →
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!