JSP include with parameters usage

DanC picture DanC · Sep 13, 2010 · Viewed 50.1k times · Source

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>

Answer

Bozho picture Bozho · Sep 13, 2010

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