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
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.
Explain the difference between jspwriter and servlet printwriter in jsp?
What are the jsp tags?
Can we define a class in a jsp page?
What is jsp expression?
What is the difference between jsp and php?
What is a javaserver pages (jsp)?
What are the jsp standard actions?
Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?
What are implicit objects in jsp?
How are jsp(java server pages) better than asp(active server pages)?
How is jsp include directive different from jsp include action. ?
How are custom tags in jsp created?
How can information from one JSP be passed to another JSP?
How to find out the name of the http method using jsp el?