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 I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.
Why is it not necessary to configure standard jsp tags in web.xml?
What are request and response objects?
What is iselignored in jsp?
Why jsp is faster than servlet?
Explain the uses of
How can I override the jspinit() method within a jsp page?
What is jsp expression language and what are it’s benefits?
Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme
How to make a “new line in html” in jsp?
Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?
How do you connect to the database from jsp?
Mention some important jsp action tags.
How to include static files in a JSP page?
What is tag file in jsp?