window.location.href='index2.jsp?xxx=123'
script>
或者
2、传参数测试
3、
都可以在 index2.jsp 页面中通过${param.xxx }或者 <%=request.getParameter("xxx") %> 都 可以 取得到
注:
param 它的取值范围Page,Request,Session,Application。
${param.name}等价于request.getParameter("name"),{param[name]}也是一样的
${params.name}等价于request.getParameterValues("name")
注意:
1、${requestScope.name} 等价于 request.getAttribute("name")
2、上面没有指出从哪个scope中取,所以按顺序检测那四个scope
3、最好用${xxsScope.name} ,不用 ${param.name}
Copyright © 2019- ruangwengfa.com 版权所有
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务