What happens internally when we use request.getRequestDispatcher?

0

When we use request.getRequestDispatcher() it does the forwarding of the request to another servlet to be serviced (correct?). The question I wanted to know is: internally, does this invocation (do not know if that is the correct term) of the other servlet by a new HTTP request or is it something like calling a method?

    
asked by anonymous 11.10.2018 / 17:51

1 answer

0

The whole process occurs internally without involving the client or browser. Visually we do not see the forwarded address, but an internal request occurs.

    
11.10.2018 / 19:25