What is difference between Forward() and sendRedirect()
methode?
Answer Posted / mohan
I want to add one more point to the above answers, that is,
in case of Forward() the attributes related to the request
will remain same, as it is inside the server, whereas
incase of senRedirect(), it results in a new request so the
previous attributes of the request will be lost...
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Why is Servlet so popular?
Differentiate between get and post?
Can we override servlet service method?
What are the differences between the servletconfig interface and the servletcontext interface?
What are all the ways for session tracking?
Which exception is thrown if the servlet is not initialized properly?
Is servlet a controller?
How printwriter is different from servletoutputstream?
Which http method is said to be non-idempotent and idempotent?
What is cookies in servlet with example?
What are the common methods that are included in the http servlet class?
Why the concept of single thread model interface is used?
What is the default http method in the servlet?
What is the difference between get and post methods?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?