request.getAttribute怎么能从Action中读到值我有一个页面一开始就有个String id=(String)request.getAttribute("id");然后从一个Action返回到这个页面时怎么样还能让它通过request.getAttribute把值得到

来源:学生学帮网 编辑:学帮网 时间:2024/07/02 18:36:18

request.getAttribute怎么能从Action中读到值
我有一个页面一开始就有个String id=(String)request.getAttribute("id");然后从一个Action返回到这个页面时怎么样还能让它通过request.getAttribute把值得到

request.setAttribute(key,value);
只要你设置了,在一次交互过程中都会存在