what is difference between redirect and forward method?
Answer Posted / vipin gupta trainer
There is a difference between the
HttpResponse.sendRedirect() method and the
RequestDispatcher.foward() method .
the sendRedirect() method leverage Https built in redirect
features to send a message back to the client and foce the
visitors Browser to request a new page .
the forward() method transfer the HttpServletRequest and
HttpServletResponse methods to the indicated file on the
web server. the forward() method never communicates with
the visitors browser .
| Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
How do you delete a cookie within a jsp?
Explain the advantages of jsp?
What's the difference between javabeans and taglib directives?
How does response sendredirect work?
What is el?
What are stored procedures? How is it useful?
How can I prevent the output of my jsp or servlet pages from being cached by the browser?
What are the life-cycle methods for a jsp?
Define jsp declaration?
What is the purpose of
What is the purpose of
Can I declare a java class in jsp?
What is the use of pagecontext in jsp?
Explain the uses of
What are the different scope values for the jsp objects?