What is difference between sendredirect and forward?



What is difference between sendredirect and forward?..

Answer / Akhtar Israr Ahmad

sendRedirect() sends an HTTP redirect response to the client, forcing a new request from the client to be sent to a specified URL. The original request remains in the server's process pool until it is completed. On the other hand, forward() does not generate any response and transfers control to another JSP or servlet within the same application.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

What is the difference in using request.getrequestdispatcher() and context.getrequestdispatcher()?

1 Answers   Cap Gemini,


What is jsp servlet?

1 Answers  


What are jsp el implicit objects and how it’s different from jsp implicit objects?

1 Answers  


How can information from one JSP be passed to another JSP?

1 Answers  


What is the purpose of jsp?

1 Answers  


How jsp is executed?

1 Answers  


What is auto-flush attribute?

1 Answers  


When destroy method of jsp is called?

1 Answers  


Why is jsp used?

1 Answers  


How to deactivate el usage on jsp?

1 Answers  


What's the difference between an import and include directive, and also the difference between include directive and include action?

1 Answers  


How can i connect from jsp to servlet page

7 Answers   Spring Board, TCS,


Categories