what is difference between redirect and forward method?
Answer Posted / kuljeet singh
forward() method sendRedirect() method
1) forward() sends the same request to another resource. 1) sendRedirect() method sends new request always because it uses the URL bar of the browser.
2) forward() method works at server side. 2) sendRedirect() method works at client side.
3) forward() method works within the server only 3) sendRedirect() method works within and outside the server.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is translation phase?
Why jsp is used instead of html?
How does response sendredirect work?
How can I prevent the output of my jsp or servlet pages from being cached by the browser?
What is session management in jsp?
What are the elements of a jsp page?
Is there a way to reference the "this" variable within a jsp page?
Explain the uses of
Which syntax is used to comment jsp?
What is pagescope in jsp?
What is jsp page?
What is the difference between include and jsp directive: include action?
How does a servlet communicate with a jsp page?
How we can configure init params in jsp?
How does a jsp function?