JSP包含参数用法
我应该如何从包含的jsp( navMenu.jsp
)访问param1
值?
<jsp:include page="navMenu.jsp" > <jsp:param name="param1" value="menu" /> </jsp:include>
${param.param1}
(首选)或request.getParameter("param1")
我应该如何从包含的jsp( navMenu.jsp
)访问param1
值?
<jsp:include page="navMenu.jsp" > <jsp:param name="param1" value="menu" /> </jsp:include>
${param.param1}
(首选)或request.getParameter("param1")