getParameter方法就是服务器端接受客户端传递过来的数据时使用; getAttribute方法是在服务器端内部使用,数据通过getParameter获取进来之后,在另一个页面还想继续使用这个数据就要把这个数据通过setAttribute保存起来,想用时再用getAttribute取出来即可使用!(同样也可以用session.setAttribute和session.getAttribute方法来进行数据的保存和使用!)