好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

JSP页面跳转页面带参数_html/css_WEB-ITnose

1、


window.location.href='index2.jsp?xxx=123'

或者

2、传参数测试

3、

都可以在 index2.jsp 页面中通过${param.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}

查看更多关于JSP页面跳转页面带参数_html/css_WEB-ITnose的详细内容...

  阅读:35次