RT
这两个函数有什么区别吗。谢谢大家
这两个函数有什么区别吗。谢谢大家
解决方案 »
- eclipse 报 Content Assist did not complete normally 错误
- 两个简单问题,求解
- 帮忙啊各位!sql查询的问题啊 急啊
- 建议:关于struts2初学的问题解决
- 我web报异常:ServletException in '': Response already committed.
- 用 | 做为分割符号不可以吗?
- 上传多文件时,用什么分割符来区分每个文件比较保险?
- 谁知道如何使用JBuilder2005调试JSP
- 怎样用jsp页面,直接上传图片到oracle库中,并显示
- java按钮级权限管理设计
- birt报表错误,org.eclipse.birt.report.data.oda.jdbc.JDBCException:
- 用jQuery写的javascript在windows下一般用什么调试
2、getParameter()是获取POST/GET传递的参数值;getAttribute()是获取对象容器中的数据值;
getAttribute能获取到setAttribute的任何对象
getAttribute能获取到setAttribute的任何对象
getAttribute是request和session都行的,post方式
getAttribute是获得请求作用域内的数据(page,request,session,application中的数据)
由于page作用范围只在当前页面所以后台会取不到
希望对你有帮助
getAttribute能获取到setAttribute的任何对象,先从jsp中设置setAttribute,然后就可以获取getAttribute了