JSP include with parameters usage

JspParameters

Jsp Problem Overview


How should I access the param1 value from the included jsp (navMenu.jsp)?

<jsp:include page="navMenu.jsp" >
	<jsp:param name="param1" value="menu" />
</jsp:include>

Jsp Solutions


Solution 1 - Jsp

${param.param1} (preferable) or request.getParameter("param1")

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDanCView Question on Stackoverflow
Solution 1 - JspBozhoView Answer on Stackoverflow