request.getAttribute()与request.getSession().getAttribute()
request.getSession().setAttribute()和request.getSession().getAttribute()配对使用,作用域是。当域对象里面的值不存在时,使用EL表达式获取域对象里面的值返回空字符串;转发forward可以使用request.getAttribute()取得设置的属性;重定向redirect不可以。request.setAttribute()和request.getAttribute()配对使用,作用域是。,在所有的页面都使用这些数据的时候使用。
原创
2023-02-06 19:33:58 ·
1622 阅读 ·
0 评论