• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PageContext Object Returning a ServletRequest

 
Nicolas Brasseur
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a G�R� answer my question ...
Why the getRequest() method of a PageContext Object is returning a ServletResponse reference (actually a reference pointing to an object that implements the ServletResponse interface) instead of returning a reference to an object implementing the HttpServletResponse interface ?
 
Carl Trusiak
Sheriff
Posts: 3340
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This allows for Support of a system using something other than HTTP. The entire servlet package is founded on the fact that other implementations may be developed to support other protocals. I haven't seen a good working example of any.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic