Defines an object to provide client request information to a servlet. The servlet container creates a ServletRequest object and passes it as an argument to the servlet's service method. A ServletRequest object provides data including parameter name and values, attributes, and an input stream. Interfaces that extend ServletRequest can provide additional protocol-specific data (for example, HTTP data is provided by HttpServletRequest. 父子接口关系 HttpServletRequest会提供额外的特定协议数据
解决方案 »
- mysql错误
- JSF 编码问题
- 用HttpURLConnection模拟浏览器提交请求,非常急。
- 一个字符替换问题
- 文件上传
- jsp+access转化为jsp+sqlserver2000,数据库连接用的用户数据源形式,不知道程序方面需要改动哪些?
- 各位给介绍一下数据池?我刚学
- 和我联系吧
- 刚学JSP,在看JSP编程指南(第二版),过来人指点下~
- Apache 2.0.43 +Tomcat 4.1.24+mod_jk2-2.0.43.dll整合问题出现:The servlet container is temporary unavailable or being upgraded
- Hibernate 一用order by 查询分页就会有重复记录
- request.getHeader("??")???
HttpServletRequest是专门处理http协议的ServletRequest你说还有什么其他方面的ServletRequest,乖乖我还真没见过,sun又是吃饱了撑了,多定义出这么多接口来。
HttpServletRequest是专门处理http协议的ServletRequest ServletRequest就是处理所有的协议
而所谓的request(在JSP中使用的)其实只是规范中的一个名称而已。它当然是一个对象,但并不是SUN提供的,这是由各个不同的Servlet提供商编写的,SUN只是规定这个类要实现HttpServletRequest接口,并且规定了各个方法的用途,但具体是什么类是由各个提供商自己决定的。
你可以在JSP中使用out.println(request)来看看这个类的名字。