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 difference between include directive and jsp:include action?
Which jsp method cannot be overridden?
What is jsp include tag?
Can you disable jsp scripting?
What is an api with example?
How do I include static files within a jsp page?
Give the use of session object.
How do we prevent browser from caching output of my jsp pages?
What are the standard actions available in jsp?
What is jsp container?
write a program in javasacript to shake the window
What is the default value of session attribute in jsp?
in jsf page i use two dropdown list.i.e state & district.if state dropdown is selected then & then district is enable.what should be my code.
What is an implicit object?
Which tag is used for error handling in jsp pages?