(1)HttpServletRequest类有setAttribute()方法,而没有setParameter()方法
(2) getParameter()方法获取的是请求链接中的参数值,或者提交表单中的参数值;getAttribute()是从请求域中获取值,这个值是需要先通过setAttribute()设置进去。
(1)HttpServletRequest类有setAttribute()方法,而没有setParameter()方法
(2) getParameter()方法获取的是请求链接中的参数值,或者提交表单中的参数值;getAttribute()是从请求域中获取值,这个值是需要先通过setAttribute()设置进去。