摘要: 1. RequestDispatcher.forward()是在服务器端起作用,当使用forward()时,Servlet engine传递HTTP请求从当前的Servlet or JSP到另外一个Servlet,JSP 或普通HTML文件,也即你的form提交至a.jsp,在a.jsp用到了for... 阅读全文
posted @ 2015-12-05 20:21 凌晨4点的洛杉矶 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 1.session.setAttribute()和session.getAttribute()配对使用,作用域是整个会话期间,在所有的页面都使用这些数据的时候使用。2.request.setAttribute()和request.getAttribute()配对使用,作用域是请求和被请求页面之间。r... 阅读全文
posted @ 2015-12-05 20:18 凌晨4点的洛杉矶 阅读(855) 评论(0) 推荐(0) 编辑