开发者

JSP include with parameters usage

开发者 https://www.devze.com 2023-01-16 02:17 出处:网络
How should I access the param1 value from the included jsp (navMenu.jsp)? <jsp:include page=\"navMenu.jsp\" >

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:i开发者_运维知识库nclude>


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

0

精彩评论

暂无评论...
验证码 换一张
取 消