JSP include with parameters hotwo

June 25th 2013 by Samuel Rossille

Include the content of an other jsp:

<jsp:include page="includes/header.jsp" >
    <jsp:param name="paramName1" value="paramValue2" />
    <jsp:param name="paramName2" value="paramValue2" />
</jsp:include>

Retrieve the parameter value:

request.getParameter("paramName1");

Good to know

References: