When we forward a request from one servlet to another, using request dispatcher method forward
, so as the other servlet generates the response, or when we want a response from the other servlet to go back to the one calling, we use include
- Now forward has two parameters, request and response ,request is client requestwhat is response? A response from servlet1 or servlet two?
- Same goes for include, what is in response object? Response from servlet 1, or servlet 2?