• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpServletResponse Implementation

 
Nestor Fabio Alduey Gonzalez
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excume me in the Previous message, I only want to know what class implements the HttpServletResponse and HttpServletRequest interface to use it's methods like sendRedirect without a call to the servlet.

Att. Nestor Alduey
Sun Certified Java Programmer
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpServletRequest and HttpServletReponse are classes.
You don't have to implement them.
 
Aravindan Ramkumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpServletRequest and HttpServletResponse are interfaces. The implementing classes of these interfaces are provided by the container (Tomcat,JBoss,WebLogic etc). These interfaces are explained in the servlet 2.2 specification. A web application's code should not depend on the implementors of this interface. I suggest, you reconsider your approach for fixing the issue.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From your previous message... are you sure the request and response are pointing to null !!?? Perhaps the user is requesting for a url-pattern that does not exist or you are trying to do a sendRedirect() to a source that does not exist. Can you tell us what Exception is thrown ? Surely its not a NullPointerException on the request or response object !? The HttpServletRequest and HttpServletResponse are implemented by the container for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic