JSP页面跳转页面带参数
来源:互联网 发布:node.js php 接口开发 编辑:程序博客网 时间:2024/05/17 07:30
1、
<script type="text/javascript">
window.location.href='index2.jsp?xxx=123'
</script>
或者
2、<a href="index2.jsp?xxx=123">传参数测试</a>
3、<jsp:forward page="index2.jsp">
<jsp:param name="xxx" value="123" />
</jsp:forward>
都可以在 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}
0 0
- JSP页面跳转页面带参数
- JavaScript带参数跳转页面
- 带参数的页面跳转
- 小结<跳转页面带参数>
- jsp页面方法带参数
- 页面跳转带参数及获取参数
- asp.net带参数的页面跳转
- thinkphp js带参数跳转页面
- 怎样获取jsp页面跳转参数
- JSP中参数传递以及页面跳转
- 两个JSP页面跳转传参数
- 两个JSP页面跳转传参数
- Struts2中action重定向跳转到jsp页面两种配置方式带参数
- jsp获取当前页面url(带参数)
- url带参数链接,以及跳转页面接受参数
- jsp页面转向(跳转)
- jsp页面跳转
- jsp页面跳转方法
- A Theoretical Analysis of Feature Pooling in Visual Recognition
- 杨氏矩阵
- 【解决】android.content.res.Resources$NotFoundException:String resource ID #0x86
- 服务器端负载均衡技术的本质原理
- 九度OJ 1497:面积最大的全1子矩阵(DP)
- JSP页面跳转页面带参数
- Shp文件的几何向量在Osg中转换及轮廓提取
- 实现标签对 tooltip 的快速调用
- Spring事务管理+openJPA List<实体>方法更新所有对象
- linux下memcached的启动/结束的方式
- oracle select into
- UI第七课
- 解决网络监听多次发送广播的问题
- Hibernate Entity 中使用 sequence