JSP传递参数与接受参数
作者:互联网
动作元素:(strPath为请求路径,yourGet为参数)
<%
strPath += "?yourGet="+yourGet;
%>
<jsp:include page ="<%= strPath %>" />
等价于
<jsp:include page="<%= strPath %>">
<jsp:param name="yourGet" value="<%= yourGet %>"/>
</jsp:include>
接受参数:
<%
String paramVar=request.getParameter("yourGet");
%>
标签:yourGet,等价,传递,JSP,参数,接受,strPath 来源: https://blog.csdn.net/wangctes/article/details/89047889