10.9
request常用方法:
1、String getParameter(String key)获取客户端传来的参数
2、void setAttribute(String key.Object value) 通过键值对的形式保存数据
3、Object getAttribute(String key)通过key取出value
4、RequestDispatcher getRequestDispatcher(String path)返回一个RequestDispatcher对象,该对象的forward方法用于请求转发
5、String[ ] getParamterValyes()获取客户端传来的多个同名参数
6、void setCharacterEncoding(String charset)指定每个请求的编码