adspace


What’s the difference between forward and sendredirect?

Answer Posted / Ankur Sudhanshu

In JSP, RequestDispatcher.forward() is used to forward a request to another resource within the same application without changing the request URL or response headers, while Response.sendRedirect() sends an HTTP redirect status (302) to the client, making a new HTTP request to the specified URL.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need the source code for opening a word document in java

2309