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 can we avoid direct access of jsp pages from client browser?
Which tag is used for error handling in jsp pages?
Explain the advantages in jsp?
What is the difference between servletcontext and pagecontext?
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 server context?
What is jsp and servlets?
How to restrict page errors display in a JSP page?
What is meant by session management?
Can a subsequent request be accessed with one’s servlet code, if a request attribute is already sent in his jsp?
Explain the difference between include directive and include action in jsp?
Can we call servlet from jsp?
Can you explain what is jsp page life cycle?
What is a scriptlet?
What are the different types of jsp tags?