JSP中使用标签传递参数

//传值

<jsp:include page="/home.jsp">
	<jsp:param value="postlist" name="menu"/>
</jsp:include>



在母页面就可以这样取值了。

 $(param.menu)  或者  request.getParameter (menu)
得到的值为postlist

发布了26 篇原创文章 · 获赞 2 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/liaoze2010/article/details/60571890