What’s the difference between forward and sendredirect?



What’s the difference between forward and sendredirect?..

Answer / 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

More JSP Interview Questions

Explain the steps for creating custom tags in jsp?

1 Answers  


What are the implicit, internal objects and methods on the jsp page?

1 Answers  


Can jsp contain javascript?

1 Answers  


What are the lifecycle phases of a jsp?

1 Answers  


Explain jsp lifecycle methods?

1 Answers  


How can i connect from jsp to servlet page

7 Answers   Spring Board, TCS,


What is a declaration?

1 Answers  


List the various action tags used in jsp.

1 Answers  


What is scriptlet, expression and declaration in jsp?

1 Answers  


What is meant by session management?

1 Answers  


Is jsp static or dynamic?

1 Answers  


What are the components that make up a tag library in jsp?

1 Answers  


Categories