Question: What is the advantage of using RequestDispatcher over sendRedirect() to forward a request to another resource? (a) The RequestDispatcher does not use the reflection API.

What is the advantage of using RequestDispatcher over sendRedirect() to forward a request to another resource?

(a) The RequestDispatcher does not use the reflection API.

(b) sendRedirect() is no longer available in the current servlet API.

(c) The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state.

(d) sendRedirect() is not a cross-web server mechanism.

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c The RequestDispatcher does ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Advanced Java Programming Questions!