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
Define scriptlet, expression and declaration in jsp?
How to configure init parameters for jsp?
What is the jsp:plugin action ?
Explain the difference between jspwriter and servlet printwriter in jsp?
How do I run a jsp file in linux?
What do cookies mean?
What is jsp custom tag and what are it’s components?
What is an api with example?
What do you mean by isscriptingenabled attribute?
What is session scope?
What is the jspinit() method?
What are the different life-cycle methods?
Can you stop multiple submits to a web page that are initiated by clicking to refresh button?
What is declaration statement?
What is a jsp and what is it used for?