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会提供额外的特定协议数据

解决方案 »

  1.   

    就这么简单
    HttpServletRequest是专门处理http协议的ServletRequest你说还有什么其他方面的ServletRequest,乖乖我还真没见过,sun又是吃饱了撑了,多定义出这么多接口来。
      

  2.   

    SUN 没有吃饱, 确实有, 定义那么多接口也基于一个JAVA基本思想, 基于接口的设计。
      

  3.   

    就这么简单 
    HttpServletRequest是专门处理http协议的ServletRequest ServletRequest就是处理所有的协议
      

  4.   

    HttpServletRequest接口是继承自ServletRequest接口的。增加了和HTTP相关的一些方法。  
      而所谓的request(在JSP中使用的)其实只是规范中的一个名称而已。它当然是一个对象,但并不是SUN提供的,这是由各个不同的Servlet提供商编写的,SUN只是规定这个类要实现HttpServletRequest接口,并且规定了各个方法的用途,但具体是什么类是由各个提供商自己决定的。  
      你可以在JSP中使用out.println(request)来看看这个类的名字。