1.getAttribute()获取的是对象,而getParameter()获取的是字符串。
2.request.getAttribute("name")是获取容器里面的值(类似于HashMap),在整个容器中有效,如tomcat。而request.getParameter("name") 是获取上一个页面通过post/get传入本页面的值。[getAttribute()和setAttribute()]
3.当从页面获取checkbox类型的参数时使用getParameterValues()方法。